-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildWin.js
More file actions
24 lines (21 loc) · 727 Bytes
/
buildWin.js
File metadata and controls
24 lines (21 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const packager = require('electron-packager');
console.log('Now building... (This might take a while)');
const buildOptions = {
dir: './',
appCopyright: 'Copyright (C) 2018 robflop',
platform: 'win32',
arch: process.argv[2] || 'ia32',
asar: true,
icon: './src/icon.ico',
ignore: /(buildWin|makeInstallers|vscode|eslintrc|gitattributes|gitignore|htmlhintrc|travis)/,
out: 'dist/',
overwrite: true,
prune: true,
win32metadata: {
CompanyName: 'robflop',
ProductName: 'Chatron',
FileDescription: 'A chatroom client built with electron and vuejs.',
OriginalFilename: 'Chatron.exe'
}
};
packager(buildOptions).then(appPaths => console.log('Successfully built into the following folder:', appPaths.join('\n')));