Electron-builder - 如何 运行 脚本 after/before 安装应用程序
Electron-builder - how to run a script after/before installing an app
我有一个用 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
我有一个用 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