Hi Ryan! Yes, I had it in mind-roadmap I've released a new version (0.3.2) that adds support for creating executables with a custom platform/arch/node version
For example, under OSX you could use: $ nar create --executable --os linux --arch x64 --node 0.11.9 It's available from npm: $ npm update -g nar I need to test it in Windows! :S 2014-07-02 20:31 GMT+02:00 Ryan Schmidt <[email protected]>: > > On Jun 29, 2014, at 6:45 AM, Tomás Aparicio wrote: > > > Some users asked me about a way to create fully self-contained nar > archives that do not requires that node or nar must be already installed in > the system in order to run or extract an application > > > > I've finally decided to provide support to this feature. From 0.3.0 > version you can create executable binary-like nar archives that do not have > external dependencies. node binary and nar package are now embedded > > > > $ nar create --executable > > > It generates server-0.1.0.nar, for example > > > > Then you can distribute your archive into a fresh server (without node > installed) and simply run > > $ chmod +x server-0.1.0.nar > > $ ./server-0.1.0.nar run --args-start='--port 8080' > > > > $ npm install -g nar > > > > I hope this will be useful > > Presumably this executable is only usable on a single > platform/OS/architecture? Is that the same platform/OS/architecture on > which it was created? For example, executable archives made on 64-bit Intel > Mac OS X can only be run on 64-bit Intel Mac OS X, and executable archives > created on 32-bit Intel Gentoo Linux can only be run on 32-bit Intel Gentoo > Linux? > > -- > Job board: http://jobs.nodejs.org/ > New group rules: > https://gist.github.com/othiym23/9886289#file-moderation-policy-md > Old group rules: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > --- > You received this message because you are subscribed to a topic in the > Google Groups "nodejs" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/nodejs/0_C1hcAbUyM/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nodejs/9C296EB6-CC61-4A71-A6EE-A5F34FD5B9A9%40ryandesign.com > . > For more options, visit https://groups.google.com/d/optout. > -- Tomás Aparicio -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAOr4ezviPFSk7no%3DRXLdaHV2abJ9ULw5maHCg0ZvUF0kO2ibTA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
