- Joined
- Dec 7, 2015
- Messages
- 4
- Reaction score
- 5
- First Language
- English
I am now going to teach you how to export your game to Linux.
Step 1: Export
Export your game as a Windows Project. This creates the package.json file and the file structure.
Step 2: Download NW.js for Linux.
Go to http://nwjs.io/ and download the package for Linux. Since most computers run 64bit, download that.
Step 3: Navigate to the Export Folder and Delete things.
Go to your export folder and delete everything except package.json and www.
Spoiler
Step 4: Extract NW.js to your export folder.
Extract the contents of NW.js to your export folder. You can delete nwjc, as it does nothing for your game.
Note: If you are running Windows and can't open tar.gz files, 7-zip will be able to extract it.
Spoiler
Step 5: You're done.
Congrats! You've exported your game for Linux!
Advanced: Using Web2Exe
From GitHub:Web2Executable is a friendly command line and GUI application that can transform your Nodejs (or any other JS/HTML) app into a standalone executable. It can export to Mac OS X, Windows and Linux all from one platform, so no need to go out and buy expensive hardware.
(Note: Web2Exe is in beta).
Repeat Steps 1 and 3 from the previous tutorial.
Step 1: Download Web2Exe
Download Web2Exe for your platform.
Step 2: Run it and navigate to your output directory.
Spoiler
Step 3: Customize settings
Customize the settings. The app does have tooltips to explain what each option does
Step 4:Build Applications
Go to export and select the platforms you want to build for. The app will do everything else.
Spoiler
Note:With the exception of Mac builds, your project files will be embedded into the application like so.
This does NOT mean they are encrypted. Anyone can unzip them if they desire too.
Spoiler
Feedback is welcomed and highly appreciated.
Last edited by a moderator:

