How To Turn Your Twine Games Into Windows ExecutablesSome people are unhappy with the current .html format of Twine games. This tutorial is meant to show you how to turn .html Twine games into .exe Windows files.RequirementsYou will need:
Your Twine game's .HTML file
Extract NW.JS with a ZIP extractor.
Now, let's continue!Configuring package.json
We will need a proper package.json to do this.
Download the attached.json, open it in Notepad,
and change "gameName" and "gameAuthor" to the name of the game, and your name respectively.
Rename your HTML to index.html
For "license", put any 3 or 4 letter license, like GPL, MIT, LGPL and other licenses.
Save the file as 'package.json' in the directory where the HTML file is.Compiling The Executable
Make sure you extract the NW.JS archive.
Now, in the directory the HTML file is in, put all the required files for your game, and then put everything in that directory
into a zip file.
Rename the zip file to blablabla.nw
MAKE SURE THE EXTENSION IS .NW
If you cannot see the extension, press Windows+R and type 'cmd', then hit enter.
Then, in CMD: type:cd "*directory where HTML file is*"
After that:ren *name_of_ZIP*.zip *name_of_ZIP*.nw
Take the .nw file and put it in the same directory you extracted the NW.JS in.
It's the right directory if there is a 'nw.exe' file.
Now, go back to CMD and type this in:cd "*NW.JS directory*"
After that:copy /b nw.exe+*nameofnw*.nw *nameofgame*.exe
And you are done! DO NOT DELETE THESE FILES: *nameofgame*.exe, nw.pak, libGLESv2.dll, libEGL.dll, icudtl.dat, ffmpegsumo.dll, d3dcompiler_47.dll
Delete all the other files.
Finally, put your game's license in.
And that's it.