mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-09-10 02:24:36 -05:00
26 lines
769 B
JavaScript
26 lines
769 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('./')
|
|
const outPath = path.join(rootPath, 'release-builds')
|
|
|
|
return Promise.resolve({
|
|
appDirectory: path.join(rootPath, 'Chia-0.1.6-win32-x64/'),
|
|
authors: 'Chia Networks',
|
|
noMsi: true,
|
|
outputDirectory: path.join(outPath, 'windows-installer'),
|
|
exe: 'Chia-0.1.6.exe',
|
|
setupExe: 'ChiaSetup-0.1.6.exe',
|
|
setupIcon: path.join(rootPath, 'src', 'assets', 'img', 'chia.ico')
|
|
})
|
|
}
|