linux - Electron-builder - 如何在安装应用程序之后/之前运行脚本

标签 linux macos electron electron-builder

我有一个用 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/

相关文章:

Linux 驱动程序 : device tree and old-style driver instantiation

macos - Firefox NPAPI 插件在 VMware 上的 OSX 中损坏

c - OSX 10.6 上的 pwrite() 不支持 64 位偏移量

vue.js - .scroll()可在Codepen上使用,但不能在我的Electron Vue应用程序中使用

c++ - vim - 某些折叠未保存

linux - 通配符虚拟主机 Ubuntu

php - 无法构建 Dockerfile - 无法找到包

linux - 如何从独立的 GNU screen session 中邮寄命令的输出?

electron - 如何从构建的 HTML(dist)构建 Electron 应用程序?

javascript - 使无框架的 React/Electron 应用程序标题栏在滚动期间不消失