Nw.js Building Desktop Apps

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.