Please note: This tool will not work on Windows 10 S devices. It may work on ARM-powered devices, so long as you use the x86 version of nwjs.
What is this?
This tool automates the compilation of JavaScript files with NW.js’ compiler. The compiler creates binary versions of the files, ensuring the protection of the source code. The tool also packages the code (and the assets) on an archive that Nw.js can read.
How do I use it?
First of, you’ll need to do a few modifications to the project. I’ve included the replacement code you need to apply to your project (after deploying it, of course). After that, it’s pretty simple: Tell the tool where the nwjc.exe file is and the project you want to compile. In a few minutes, you can upload the game to the public.
Do note: once you compile it, you can only use the same version of nwjs for the same operating system. So, if you compiled the game with SDK Version 0.30.4 (for example) on Windows, you can only use the code with Standard Version 0.30.4 on Windows.