0

我需要从一个电子应用程序制作一个 MSI,以与另一个也设置为每台机器而不是每个用户的 MSI 捆绑。看来这种组合是不存在的。

Electron-Builder squirrelWindows:允许创建 MSIsquirrelWindows并将msi布尔值设置为 true,但没有perMachine选项。 https://www.electron.build/configuration/squirrel-windows

Electron-Builder NSIS:有perMachine选项,但显然不适用于 MSI。 https://www.electron.build/configuration/nsis

Electron-Wix-MSI:创建 MSI,但看不到更改perMachine标志的能力。 https://github.com/felixrieseberg/electron-wix-msi

Windows-installer:创建 MSI,perMachine https://github.com/electron/windows-installer没有选项

编辑 - 解决方案

electron-wix-msi 上的这些拉取请求更改解决了我的问题: https ://github.com/felixrieseberg/electron-wix-msi/pull/138

4

1 回答 1

0

我已经为每台机器打包了多个 Electron 应用程序。这只是一堆文件。可能是一大堆文件。对于带有解压的 node_modules 目录的那些,我只是在预构建步骤中使用 heat 来编写组件。除此之外,它就像任何其他应用程序一样。

于 2021-11-15T19:36:20.963 回答