加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gulpfile.js 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
guangzhou-luolixiang 提交于 2020-07-22 16:25 . 项目上传,
const gulp = require('gulp');
const path = require('path')
const createWindowsInstaller = require('electron-winstaller').createWindowsInstaller
gulp.task('default', function () {
getInstallerConfig()
.then(createWindowsInstaller)
.catch((error) => {
console.log(1)
console.error(error.message || error)
console.log(error)
process.exit(1)
})
function getInstallerConfig() {
const rootPath = path.join(__dirname, '/')
const outPath = path.join(rootPath)
console.log('creating windows installer')
console.log(path.join(rootPath, '/OutApp/'), outPath, path.join(outPath, '/OutApp'))
return Promise.resolve({
appDirectory: path.join(rootPath, './OutApp/robot-win32-x64'),
authors: 'Veintc',
noMsi: true,
outputDirectory: path.join(outPath, './OutApp/robot-designer'),
exe: 'robot.exe',
setupExe: 'robot.exe',
// loadingGif: No
// setupIcon: path.join(rootPath, 'app', 'img', 'icon.ico')
})
}
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化