如何使用电子构建器使用自建造的电子二进制文件
我已经建造了自己的电子二进制文件。我将这些二进制文件放入./ node_modules/electron/dist
中。从开发环境中使用npm start
运行应用程序时,一切正常,但是当用电子构建器包装应用程序时,电子缺乏我添加的功能。看起来电子构建器在包装应用程序时不会采用node_modules/electron
中的内容。
有人可以告诉我如何与电子构建器一起使用自己的电子二进制文件吗?
I've built my own Electron binaries. I've put those binaries into ./node_modules/electron/dist
. Everything works fine when running the app with npm start
from the development environment, but when packaging the app with electron-builder, Electron lacks that functionality that I added. It looks like electron-builder does not take whats in node_modules/electron
when packaging an app.
Can somebody tell how I can use own Electron binaries with electron-builder?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以通过在电子构建器的
构建
package> package.json
的章节中使用electondist
属性来实现。It can be achieved by using the
electronDist
property in the electron-builder'sbuild
section ofpackage.json
.