2
我正在Windows中进行一些部署测试,并使用“electron-windows-installer”程序包从我的电子应用程序创建Windows安装程序。电子窗口安装程序执行速度缓慢
我做了一个吞咽任务。
'use strict';
var gulp = require('gulp');
var winInstaller = require('electron-windows-installer');
gulp.task('create-windows-installer', function(done) {
winInstaller({
appDirectory: 'build/myApp',
outputDirectory: 'build/release',
iconUrl: 'URIToIcon',
exe: 'myApp.exe',
title: 'myApp',
setupExe: 'myApp.exe',
setpMsi: 'myApp.msi',
setupIcon: 'pathToIcon',
loadingGif: 'pathToGif',
arch: 'ia32'
}).then(done).catch(done);
});
而且我的package.json有以下命令从NPM
"installer": "gulp windows-installer"
运行它,当我做NPM运行安装程序一切正常,但在执行创建此安装程序是约1小时10分钟。我的项目中有52个依赖项,最终的可执行文件大约为200MB。我想知道如果这个过程需要这么长时间或者我的代码中有什么不好,这是正常的。
非常感谢。