代码拉取完成,页面将自动刷新
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-win32-x64'),
authors: 'Chia Network',
version: process.env.CHIA_INSTALLER_VERSION,
noMsi: true,
iconUrl: 'https://raw.githubusercontent.com/Chia-Network/chia-blockchain/master/electron-react/src/assets/img/chia.ico',
outputDirectory: path.join(outPath, 'windows-installer'),
certificateFile: 'win_code_sign_cert.p12',
certificatePassword: process.env.WIN_CODE_SIGN_PASS,
exe: 'Chia.exe',
setupExe: 'ChiaSetup-' + process.env.CHIA_INSTALLER_VERSION + '.exe',
setupIcon: path.join(rootPath, 'src', 'assets', 'img', 'chia.ico')
})
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。