Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

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!

like image 990
HansMu158 Avatar asked Jan 16 '16 15:01

HansMu158


1 Answers

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

like image 50
inukshuk Avatar answered Sep 20 '22 12:09

inukshuk