简体   繁体   English

构建Electron App需要NodeJS吗?

[英]Is NodeJS required for a build Electron App?

I have created my own app using electron and now built it using electron-packager to an .app file. 我使用电子创建了自己的应用程序,现在使用电子打包器将其构建到.app文件中。

Of course on my Mac — with NodeJS installed — it works. 当然在我的Mac上 - 安装了NodeJS - 它可以工作。 Now I wonder if it would work if I sent my app to a friend who doesn't have NodeJS installed. 现在我想知道如果我将我的应用程序发送给没有安装NodeJS的朋友,它是否会起作用。 So my question is: Is NodeJS required to run a packaged electron app? 所以我的问题是: NodeJS是否需要运行打包的电子应用程序?

Thank you! 谢谢!

If you've packaged your app correctly you will be able to send it to your friend (you probably need to zip / dmg the app because it contains symlinks). 如果你已正确打包你的应用程序,你就可以将它发送给你的朋友(你可能需要压缩/删除应用程序,因为它包含符号链接)。 Your friend does not need to install electron nor node beforehand -- it should all be packaged already (including all your node modules). 你的朋友不需要预先安装电子或节点 - 它应该已经全部打包(包括你所有的节点模块)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM