我在使用 electron-builder 打包我的 electron 应用程序时遇到问题?
I am having a problem while packaging my electron app using the electron-builder?
这个错误 window 在我使用 electron-builder 打包后进入我的应用程序后立即出现
虽然包含了 electron-updater 的 devDependencies
electron-builder
不在打包的应用程序中包含 devDependencies,因为它们专用于开发,您应该重新安装 electron-updater
作为依赖项。
来自 electron-builder
网站:
A complete solution to package and build a ready for distribution Electron app for macOS, Windows and Linux with “auto update” support out of the box.
- NPM packages management:
- Native application dependencies compilation (including Yarn support).
- Development dependencies are never included. You don’t need to ignore them explicitly.
...
这个错误 window 在我使用 electron-builder 打包后进入我的应用程序后立即出现
虽然包含了 electron-updater 的 devDependencies
electron-builder
不在打包的应用程序中包含 devDependencies,因为它们专用于开发,您应该重新安装 electron-updater
作为依赖项。
来自 electron-builder
网站:
A complete solution to package and build a ready for distribution Electron app for macOS, Windows and Linux with “auto update” support out of the box.
- NPM packages management:
- Native application dependencies compilation (including Yarn support).
- Development dependencies are never included. You don’t need to ignore them explicitly.
...