我有一个用 Electron 编写的应用程序,它使用了 electron-builder。我想打包适用于 Linux(Ubuntu 和其他可能)和 Mac 的应用程序。但是在安装应用程序时,我还需要运行用于安装某些第三方软件的脚本。
对于 Windows (nsis),我知道有一个配置:"include": "installer.nsh"
。
我可以使用适用于 Linux/Mac 的类似工具来执行此操作吗? 提前致谢!
最佳答案
我也在GitHub上问过。答案是:
For AppImage not possible. For mac DMG not possible.
You can use alternative formats, but I just recommend you to install required software on first run.
这是答案:https://github.com/electron-userland/electron-builder/issues/3436
关于linux - Electron-builder - 如何在安装应用程序之后/之前运行脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52968292/