【问题标题】:Electron - build an installer for Windows x64 on MacElectron - 在 Mac 上为 Windows x64 构建安装程序
【发布时间】:2021-12-01 16:03:35
【问题描述】:

我是电子新手,正在尝试使用我的 mac 为电子应用程序构建一个 Windows 安装程序。我正在使用 electron-packager 来打包应用程序,然后使用 electron-wix-msi 来构建安装程序。执行构建安装程序步骤时,会引发错误 Unable to read file info from exe. Falling back to packaging description. Error: spawn Unknown system error -86。请在随附的屏幕截图中查看完整的错误消息。

我想强调的是,当我为 macOS 构建安装程序时,它可以工作。我应该明白我不能使用 mac 构建 Windows 安装程序吗?

build_installer64.ts 文件:

【问题讨论】:

    标签: electron windows-installer electron-builder electron-packager


    【解决方案1】:

    你不能这样做,你必须在 Windows 平台上这样做。 我使用 GitHub Actions 为每个平台构建我的应用程序,适用于 Windows 的代码: https://github.com/KorbsStudio/electron-builder-sample/blob/main/.github/workflows/node.js.yml#L54-L71

    【讨论】:

    • 感谢@korbs 分享此信息。
    猜你喜欢
    • 2017-01-29
    • 1970-01-01
    • 2020-02-03
    • 1970-01-01
    • 2018-01-01
    • 2019-05-02
    • 2013-07-10
    • 1970-01-01
    • 2019-11-19
    相关资源
    最近更新 更多