2019-02-28 19:42:22 +07:00
|
|
|
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('./')
|
|
|
|
|
|
|
|
return Promise.resolve({
|
2019-02-28 19:52:24 +07:00
|
|
|
appDirectory: path.join(rootPath, 'release-builds', 'RyzenController-win32-ia32/'),
|
2019-02-28 19:42:22 +07:00
|
|
|
authors: 'Decaunes Quentin',
|
|
|
|
outputDirectory: path.join(rootPath, 'installer-builds'),
|
|
|
|
setupExe: 'RyzenControllerInstaller.exe',
|
|
|
|
noMsi: true
|
|
|
|
})
|
|
|
|
}
|