So we got nexe to compile nodejs projects to an executable binary:
- it downloads the nodejs source
- it creates a single file nodejs source (using sardines )
- it monkey patches the nodejs code to include this single file in the binary (adding it to the lib/nexe.js)
$ nexe -i myproject.js -o myproject.bin -r 0.10.3
Caveats:
- I had an issue with unicode chars that got converted: it uses uglify.js and this needs to be configured to leave them alone