-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstaller.js
More file actions
24 lines (21 loc) · 730 Bytes
/
installer.js
File metadata and controls
24 lines (21 loc) · 730 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 createWindowsInstaller = require('electron-winstaller').createWindowsInstaller
const path = require('path')
getInstallerConfig()
.then(createWindowsInstaller)
.catch((error) => {
console.error(error.message || error)
process.exit(1)
})
function getInstallerConfig () {
console.log('creating windows installer')
const outPath = 'C:/Users/Xmplar/Documents/JS_Workspace/Geb/Geb/geb-win32-x64/'
return Promise.resolve({
appDirectory: outPath,
authors: 'Mohammed Abbas',
noMsi: true,
outputDirectory: path.join(outPath, 'windows-installer1'),
exe: 'geb.exe',
setupExe: 'Geb Config.exe',
setupIcon: 'C:/Users/Xmplar/Documents/JS_Workspace/Geb/installers/windows/setup.ico'
})
}