Can I compile a JS application and NodeJS interpreter into a single executable file for distribution?
This may seem obvious, but here I take it upon myself.
"A single executable file for distribution" sounds just like the installer ...
The installer will contain or be able to extract online js scripts and compiled node.js. It will unpack everything and create a script in /etc/init.d/ to start and stop the server.
If all your clients are on the same distribution (for example, Debian), I will just create a package for the appropriate packaging tool (for example, apt) and let the batch tool handle everything.
All clients have different distributions, you can see autopackage .
Dagg nabbit
source share