开发者

Packing Node.js-Scripts + node.exe into a single Executable [duplicate]

This question already has answers here: How do I deploy Node.js applications as a single executable file? [duplicate] (7 answers) 开发者_运维技巧 Closed 7 years ago.

Because Node.js now also available on Windows, I would like to share my scripts without including node.exe. Is it possible to pack the script (no more files) together with the node.exe into a single executable file?


You absolutely can, and it's pretty easy with JXcore.

Once you have JXcore installed on windows, all you have to do is run:

jx package app.js "myAppName" -native

This will produce a .exe file that you can distribute and can be executed without any external dependencies whatsoever (you don't even need JXcore nor Node.js on the system).

Here's the documentation on that functionality: https://github.com/jxcore/jxcore/blob/master/doc/api/jxcore-feature-packaging-code-protection.markdown

(Duplicate of https://stackoverflow.com/a/27551233/810830)


Have you tried WinRAR? It should give you the opportunity to create a self-extractable executable which unpacks all files to the TEMP folder. After doing this you can setup to run one exe file in the archive. Furthermore you can hide the "Unpack" dialog.


actually I think you can use adobe air to accomplish this, no need to include node.exe

have you ever tried to develop hybrid applications with QtWebKit, which I think might be a very good direction for you., hope this helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜