Recently to make a desktop application, it is also convenient to use. Find a lap find nw.js very easy to get started, share to everyone.
Nw.js
Official website https://nwjs.io/
1. Download JS for the current version
"Download the SDK version here for easy follow-up debugging"
2. Unzip to Local
3. Build your Own project
Index.html and Package.json must have the two files.
4. Put the project in the same directory after nw.js decompression
5. command to enter the current folder input NW MyApp
You can also drag the project directly to the Nw.exe
6. Package the app into a app.nw file, enter the MyApp folder, make all the file selections into a Zip package, and rename it to APP.NW
7. Merging APP.NW and Nw.exe:
Move the app.nw file to and nw.exe the sibling directory, and then execute the command copy/b nw.exe+app.nw app.exe, At this point can be directly executed app.exe, but to other directories can not be executed, because in other directories cannot find the NWJS package of dependent files
"But can only be executed in the current environment, need to be packaged when used elsewhere, generate an. exe file"
8. Use Enigma Virtual box to make a standalone executable EXE file
Http://enigmaprotector.com/en/downloads.html
9. (1) Import the project's. exe file
(2) Select the output path "file storage address after packaging"
(3) Drag the price of NW.SJ to here, do not include their own projects
10. Click Process
11.success!
12. Generated files
(End ... )
Original https://jingyan.baidu.com/article/3065b3b6a06c92becff8a483.html
Nw.js Building Desktop Apps