-
Notifications
You must be signed in to change notification settings - Fork 25
/
build_win_installer.js
29 lines (26 loc) · 1023 Bytes
/
build_win_installer.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
/**
* Created by Fry on 2/18/17.
*/
//from https://www.christianengvall.se/electron-windows-installer/
const createWindowsInstaller = require('electron-winstaller').createWindowsInstaller
const path = require('path')
function getInstallerConfig () {
console.log('creating windows installer')
const rootPath = path.join('./')
const outPath = path.join(rootPath, 'build_releases')
return Promise.resolve({
appDirectory: "./", //path.join(outPath, 'dexter_development_environment-win32-x64/'),
authors: 'Fry',
noMsi: true,
outputDirectory: path.join(outPath, 'windows-installer'),
exe: 'dexter_development_environment.exe', //the "input" file (name only) made by electron-packager
setupExe: 'dexter_development_environment.exe'
//setupIcon: path.join(rootPath, 'assets', 'icons', 'win', 'icon.ico')
})
}
getInstallerConfig()
.then(createWindowsInstaller)
.catch((error) => {
console.error(error.message || error)
process.exit(1)
})