我在本地 npm 存储库中发布了一个应用程序,该应用程序是我的第二个 Electron 应用程序的主要依赖项。我基于 node_modules/my-first-app/dist/index.html
构建了 Electron 应用程序。有什么方法可以设置自动更新程序,以便它调用 npm update my-first-app
并根据获取的版本重新构建自身?提前致谢!
最佳答案
Electron 构建应用程序可以通过 electro-simple-updater(npm 包)进行更新,您需要编写几行代码来更新您的项目。
关于javascript - 通过 npm update 更新 Electron 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45077247/