Browse Source

Fixes #210

pull/291/merge
Ramiro Saenz 9 years ago
parent
commit
3ffe5be716
  1. 2
      app/package.json
  2. 30
      build/winstaller.js
  3. 38
      package.json

2
app/package.json

@ -1,5 +1,5 @@
{ {
"name": "rambox", "name": "Rambox",
"productName": "Rambox", "productName": "Rambox",
"version": "0.4.2", "version": "0.4.2",
"description": "Free, Open Source and Cross Platform messaging and emailing app that combines common web applications into one.", "description": "Free, Open Source and Cross Platform messaging and emailing app that combines common web applications into one.",

30
build/winstaller.js

@ -1,30 +0,0 @@
'use strict';
var electronInstaller = require('electron-winstaller');
var arch = process.argv.slice(2)[0];
if ( !arch ) {
console.error('No Architecture paramenter specified. [ia32 or x64]');
return;
}
//var appData = require('../app/package.json');
var resultPromise = electronInstaller.createWindowsInstaller({
appDirectory: './dist/Rambox-win32-'+arch
,outputDirectory: './dist/setup-'+arch
,title: 'Rambox'
,loadingGif: './resources/installer/loading.gif'
,authors: 'Rambox'
,owners: 'Rambox'
,exe: 'Rambox.exe'
,setupExe: 'RamboxSetup.exe'
,noMsi: true
,iconUrl: 'https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/installer/icons/64x64.png'
,setupIcon: './resources/Icon.ico'
//,remoteReleases: 'https://getrambox.herokuapp.com/update/'+process.platform+'/'+process.arch+'/'+appData.version
});
console.log('Creating installer... Please wait...')
resultPromise.then(() => console.log("Done!"), (e) => console.log(`Ups!: ${e.message}`));

38
package.json

@ -23,9 +23,8 @@
"build:linux": "npm run build:linux32 && npm run build:linux64", "build:linux": "npm run build:linux32 && npm run build:linux64",
"build:linux32": "build --linux --ia32", "build:linux32": "build --linux --ia32",
"build:linux64": "build --linux --x64", "build:linux64": "build --linux --x64",
"build:win": "node ./build/winstaller.js ia32 && node ./build/winstaller.js x64", "build:win32": "build --win --ia32 --em.description=Rambox",
"build:win32": "build --win --ia32", "build:win64": "build --win --x64 --em.description=Rambox",
"build:win64": "build --win --x64",
"setup:osx": "npm run sencha:clean && npm run sencha:compile && npm run clean:osx && npm run pack:osx && npm run build:osx", "setup:osx": "npm run sencha:clean && npm run sencha:compile && npm run clean:osx && npm run pack:osx && npm run build:osx",
"setup:win": "npm run sencha:clean && npm run sencha:compile && npm run clean:win && npm run pack:win && npm run build:win", "setup:win": "npm run sencha:clean && npm run sencha:compile && npm run clean:win && npm run pack:win && npm run build:win",
"zip:win32": "bestzip \"dist/Rambox-win32-ia32-portable.zip\" \"dist/Rambox-win32-ia32/*\"", "zip:win32": "bestzip \"dist/Rambox-win32-ia32-portable.zip\" \"dist/Rambox-win32-ia32/*\"",
@ -35,25 +34,11 @@
"all:win": "npm run sencha:clean && npm run sencha:compile && npm run clean:win && npm run pack:win && npm run zip:win32 && npm run zip:win64 && npm run build:win", "all:win": "npm run sencha:clean && npm run sencha:compile && npm run clean:win && npm run pack:win && npm run zip:win32 && npm run zip:win64 && npm run build:win",
"all:linux": "npm run sencha:clean && npm run sencha:compile && npm run build:linux" "all:linux": "npm run sencha:clean && npm run sencha:compile && npm run build:linux"
}, },
"name": "Rambox",
"productName": "Rambox",
"authors": [
"Ramiro Saenz"
],
"copyright": "",
"homepage": "http://www.rambox.pro",
"build": { "build": {
"name": "Rambox",
"productName": "Rambox", "productName": "Rambox",
"appId": "com.saenzramiro.rambox", "appId": "com.saenzramiro.rambox",
"app-category-type": "public.app-category.productivity", "category": "public.app-category.productivity",
"asar": true, "asar": true,
"protocols": [
{
"name": "Rambox",
"schemes": ["rambox"]
}
],
"mac": { "mac": {
"target": [ "target": [
"default" "default"
@ -78,11 +63,6 @@
} }
] ]
}, },
"win32metadata": {
"CompanyName": "Rambox",
"ProductName": "Rambox",
"InternalName": "Rambox"
},
"win": { "win": {
"title": "Rambox", "title": "Rambox",
@ -114,20 +94,10 @@
"devDependencies": { "devDependencies": {
"asar": "^0.12.1", "asar": "^0.12.1",
"bestzip": "^1.1.3", "bestzip": "^1.1.3",
"electron-builder": "5.19.1", "electron-builder": "6.3.1",
"electron-prebuilt": "1.3.4", "electron-prebuilt": "1.3.4",
"electron-squirrel-startup": "^1.0.0" "electron-squirrel-startup": "^1.0.0"
}, },
"config": {
"pre-git": {
"commit-msg": "",
"pre-commit": [],
"post-commit": "",
"pre-push": [],
"post-checkout": "",
"post-merge": ""
}
},
"dependencies": { "dependencies": {
"auto-launch": "4.0.0", "auto-launch": "4.0.0",
"firebase": "^3.0.5", "firebase": "^3.0.5",

Loading…
Cancel
Save