我正在使用以 nsis 作为目标的电子生成器来制作 Windows 安装程序。
电子版本是 1.7.9 电子生成器版本是 19.40.0
下面是用于 Windows 设置的 package.json 构建配置。
"build": {
"appId": "com.conveyant.dispatcher",
"directories": {
"output": "./dist"
},
"mac": {
"category": "public.app-category.business"
},
"dmg": {
"contents": [
{
"x": 110,
"y": 150
},
{
"x": 240,
"y": 150,
"type": "link",
"path": "/Applications"
}
]
},
"win": {
"icon": "build/icon.ico",
"target": "nsis"
},
"nsis": {
"allowElevation": false,
"allowToChangeInstallationDirectory": true,
"oneClick": false,
"perMachine": true
}
}
它将创建一个 win-package 和 windows 安装程序,但安装程序将无法运行它显示错误消息
Error!无法初始化插件目录。请稍后再试。