-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.js
30 lines (29 loc) · 886 Bytes
/
build.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
const packager = require('electron-packager');
const package = require('./package.json');
packager({
name: package['name'],
dir: "./build/client",
out: "./build/app",
icon: "./icon/icon.ico",
platform: "win32,linux",
arch: "x64",
electronVersion: "1.3.4",
overwrite: true,
asar: true,
prune: true,
ignore: "node_modules/electron-connect",
"appVersion": package['version'],
"version-string": {
companyName: "colorful-pico.net",
FileDescription: package['name'],
OriginalFilename: package['name'] + ".exe",
ProductName: package['name'],
InternalName: package['name']
}
}, function (err, appPaths) {
if (err) { console.log(err); return; }
for (var i = 0; i < appPaths.length; ++i) {
var path = appPaths[i];
console.log("Build is done. (path=" + path + ")");
}
});