-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstaller.js
26 lines (23 loc) · 839 Bytes
/
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
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 rootPath = path.join('./')
const outPath = path.join(rootPath, '../ReleasesWin32')
return Promise.resolve({
appDirectory: path.join(outPath, 'RiverStompTester-win32-ia32'),
authors: 'Henit Chobisa',
noMsi: true,
outputDirectory: path.join(rootPath, '../RiverWindowsInstaller'),
exe: 'RiverStompTester.exe',
setupExe: 'RiverSetup.exe',
description : "Testing software for stomp message broker",
setupIcon: path.join(rootPath,"src" ,"Assets", "logo.ico")
})
}