mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 18:13:28 +07:00
23 lines
642 B
JavaScript
23 lines
642 B
JavaScript
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({
|
|
appDirectory: path.join(rootPath, 'release-builds', 'RyzenController-win32-ia32/'),
|
|
authors: 'Decaunes Quentin',
|
|
outputDirectory: path.join(rootPath, 'installer-builds'),
|
|
setupExe: 'RyzenControllerInstaller.exe',
|
|
noMsi: true
|
|
})
|
|
}
|