最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Is NodeJS required for a build Electron App? - Stack Overflow

programmeradmin0浏览0评论

I have created my own app using electron and now built it using electron-packager to an .app file.

Of course on my Mac — with NodeJS installed — it works. Now I wonder if it would work if I sent my app to a friend who doesn't have NodeJS installed. So my question is: Is NodeJS required to run a packaged electron app?

Thank you!

I have created my own app using electron and now built it using electron-packager to an .app file.

Of course on my Mac — with NodeJS installed — it works. Now I wonder if it would work if I sent my app to a friend who doesn't have NodeJS installed. So my question is: Is NodeJS required to run a packaged electron app?

Thank you!

Share Improve this question asked Jan 16, 2016 at 15:35 HansMu158HansMu158 5555 silver badges15 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 19

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).

发布评论

评论列表(0)

  1. 暂无评论