Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

converting html+js to exe

I have an HTML file with embedded Javascript, and I want to convert it to a stand-alone exe.

Is that possible? How can I do it? Any html2exe tool out there?

P.S. If you must ask why, it's a very simple text-processing utility, but certain people want it (for reasons beyond me) as a desktop application.

like image 492
hasen Avatar asked Jun 29 '09 11:06

hasen


People also ask

Can you compile JavaScript to exe?

Two of the most commonly used packages used to compile JavaScript files into executables are: nexe: It is a simple command-line utility that compiles your Node. js application into a single executable file. By default, it converts it into a Windows executable.

Is an HTML file executable?

HTML Executable turns websites, HTML documents and PDF files into stand-alone Windows applications named ebooks in .exe format.


2 Answers

Try this open-source app Node-webkit (from here https://github.com/rogerwang/node-webkit) powered by Chromium JS engine and Node.js. You can pack the Node-webkit app package to a standalone .exe file. Please go through the documentation provided in the page. https://github.com/rogerwang/node-webkit/wiki/How-to-package-and-distribute-your-apps

Read the Node.js documentation http://nodejs.org/api/ and see how powerful the API is! Node-webkit provides additional API to make app menubar, use system tray icon and post notifications etc and to make the application more native! Fortunately, Node-webkit is cross-platform so you can easily port apps to Linux and Mac OS X!

I strongly recommend you to use Node-webkit to make powerful desktop apps in HTML5 CSS3 and JavaScript. All the best! :)

Here are some examples : StormCloud, NitroTasks etc.. https://github.com/rogerwang/node-webkit/wiki/List-of-apps-and-companies-using-node-webkit

like image 182
Anand Bose Avatar answered Oct 26 '22 13:10

Anand Bose


They don't generate an exe but you may be interested in looking into Adobe AIR and its opensource rival Titanium

like image 43
Massimiliano Torromeo Avatar answered Oct 26 '22 14:10

Massimiliano Torromeo