Node-webkit Packaging

Source: Internet
Author: User

What is 1.node-webkit? Nw.js is a app runtime based on Chromium and node.js . You can write native apps in HTML and JavaScript with Nw.js.the operating conditions of the Node-webkit are based on Chromium(谷歌浏览器引擎) and node. js. Nw.js allows you to write native apps using HTML and JS. *nw.js is the abbreviation of Node-webkit Document Address: http://docs.nwjs.io/en/latest/ 2. Download Node-webkit https://github.com/nwjs/nw.jsFind  download on demand. after the download is complete, it is a compressed package. Decompression can be. then you see the Nw.exe file:Double-click to run it to see if it is normal: The black one is still pretty cool!  3. Write the first example , which is https://github.com/nwjs/nw.js, very simple. Just follow the line.  4. Combined with my previous Nodejs scan file, each time ctrl+b too troublesome, here to play a package to directly double-click Run. in the same directory as the Nw.exe file, create a new test folder.  inside the catalogue:  app.js: is the previous scan file. Package.json:
{    // The Name property here is important, similar to a unique identifier. No less!     // window to render the file    "Nodejs":true,    //True, to enable Nodejs    ///Nodejs's entry file    "window": {    // simple setting of a property        "width" : +,        "height": +     }
 index.html:
<!DOCTYPE HTML><HTML><Head><MetaCharSet= "UTF-8">    <title>Frist Web Desk App</title></Head><Body> <H1>Scan and merge successfully!</H1> </Body><Scripttype= "Text/javascript"src= "App.js"></Script></HTML>
 Step One:Right-click on the above three files to a file with a. zip suffix.    Step two : Copy the Test.zip file directly to the file with the Nw.exe sibling then drag the test.zip directly onto the Nw.exe. This can be done directly. Although it is convenient, but not cool! So say no~  Step three : Merge the Nw.exe file with the Test.zip file into one fileactions on the command line:  Nw.exe must be before test.zip! Finally, the awesome EXE generated!  let's double-click it!  I have a lot on the table now: When to be when ~ ~ ~ ~the table is clean!  but!! I still don't think it's cool enough! Why? Because I want to send someone to install X! Hahaso we can download a package of this software: Http://enigmaprotector.com/assets/files/enigmavb.exe  ADD: Check our folder except for the Test folder.    then copy our Scandeskimg_boxed.exe file to the desktop to see if it can run successfully, and if it runs successfully, you can install X!  * * Question one:The first time I failed to run on the desktop, I needed the locales folder. so I copy the locales file to the desktop and then it's ready! It might be a question of Chinese in my file. problem Two: The file after packing is too large:  

Node-webkit Packaging

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.