在macOS Mojave上为Windows构建我的Electron应用程序时出错
在构建即时通讯时收到此错误:
Error: Exit code: 255. Command failed: mono /Users/nikolaj/Library/Caches/electron-builder/Squirrel.Windows/Squirrel.Windows-1.9.0/Update-Mono.exe --releasify /Users/nikolaj/Desktop/myApp/dist/squirrel-windows/myApp-1.3.1-full.nupkg --releaseDir /Users/nikolaj/Desktop/myApp/dist/squirrel-windows
我确实已经安装了mono和wine,它们都在终端上工作。
我在Windows的package.json中构建的json:
{
"squirrelWindows": {
"iconUrl": "./build/icon.ico"
},
"win": {
"publisherName": "myApp",
"target": "squirrel"
}
}
构建命令:"build:win": "electron-builder --win --x64"