加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
winstaller.js 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
Gene Hoffman 提交于 2021-02-07 12:21 . First commit
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')
})
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化