Windows的MacOS错误构建松鼠安装程序

时间:2019-06-20 14:14:17

标签: electron electron-builder squirrel

在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"

0 个答案:

没有答案