forked from stellarchat/desktop-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-nw.js
44 lines (41 loc) · 1.47 KB
/
build-nw.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
var NwBuilder = require('nw-builder');
var nw = new NwBuilder({
files: ['src/**/**',
'!src/node_modules/**/**',
'src/node_modules/sjcl/**/**',
'src/node_modules/bootstrap/dist/**/**',
'src/node_modules/font-awesome/**/**',
'src/node_modules/jquery/dist/jquery.min.js',
'src/node_modules/angular/angular.min.js',
'src/node_modules/angular-route/angular-route.min.js',
'src/node_modules/angular-translate/dist/angular-translate.min.js',
'src/node_modules/chart.js/dist/Chart.min.js',
'src/node_modules/angular-chart.js/dist/angular-chart.min.js',
'src/node_modules/underscore/underscore-min.js',
'src/node_modules/ripple-lib/build/ripple-0.12.5-rc2-min.js',
'src/node_modules/stellar-sdk/dist/stellar-sdk.min.js'
],
platforms: ['win32', 'win64', 'osx64', 'linux64'],
flavor : 'normal',
version: '0.20.2',
appName: 'StellarWallet',
appVersion : 'v3.3',
macIcns: 'src/img/rocket.icns',
winIco : 'src/img/rocket.ico'
});
nw.on('log', console.log);
nw.build().then(function(){
console.log('Build done!');
});
// nwjs version can refer to https://nwjs.io/version.json
// you may need to help nw-builder to find the correct version. :)
/*
//version.js:177
var version;
for(var v in versions) {
if (versions[v].version === args.desiredVersion) {
version = versions[v];
}
}
return version ? Promise.resolve(version) : Promise.reject('Version ' + args.desiredVersion + ' not found.');
*/