skip to Main Content

I wrote an example of a web page lottery written in jQuery, which was changed according to some examples.
I want to turn it into an .exe executable.

How can I do that?

The file structure is as follows:

jquery-app
|-----css
| |--demo.css
|-----images
| |--1.jpg
| |--2.jpg
| |--......
|-----js
| |--awardRotate.js
| |--jquery.min.js
|
|-----index.html

How should I proceed?

2

Answers


  1. Chosen as BEST ANSWER

    Use nwis to put all project files in one folder, make sure package.json is in the root directory, then compress it into .zip format, and change the suffix of the compressed file from .zip to .nw in the environment directory of nw.js Execute copy/b nw.exe+you_nw_name.nwyou_app_name.exe (after this step, you can run you_app_name.exe directly in the generated directory, which depends on some other libraries in the same directory);

    Use EnigmaVirtualBox to package you_app_name.exe and dependent libraries into a single exe file, so that our application can run on win machines without any programming environment.

    This is very useful, it is said that VSCode is doing this


  2. Electron is the most used framework for this. It’s not going to be a simple copy/paste into a wrapper, if that is what you are asking for, but it’s got a lot going for it – good docs and a great community. Bit of a memory hog though.

    https://www.electronjs.org/

    You could also use Visual Studio to create a new windows application and use a web view as a wrapper, but I’m not sure if the browser code is bundled with that; or if it uses a natively installed browser at runtime.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search