Exporting On Linux and other tips.

Joined
Dec 7, 2015
Messages
4
Reaction score
5
First Language
English
My first post is a tutorial. Perfect.


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:

KisaiTenshi

Veteran
Veteran
Joined
Oct 24, 2015
Messages
310
Reaction score
124
My first post is a tutorial. Perfect.

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.
This is old information that I originally mentioned back here

NW.JS is essentially Chromium with some built in javascript API extensions. The system requirements are no different for a Linux build than a Windows or OS X build, as they all use the same note-webkit build.

If you use any of the beta builds, there will be issues. NW.JS's wiki has instructions on how to "properly package" with it. You'll notice the instructions here seem to be similar to that in the RPG Maker MV manual.

That said, it doesn't help those who want to run the editor. Which would have been clearer if the title was "Exporting to run on Linux" not "On Linux" :)
 
Last edited by a moderator:
Joined
Dec 7, 2015
Messages
4
Reaction score
5
First Language
English
This is old information that I originally mentioned back here
To be fair, that information is displayed in a different context.

 NW.JS's wiki has instructions on how to "properly package" with it. 
Yep, that's where I found out about Web2Exe in the first place. Web2Exe automates the packaging process without external dependencies, though.

Which would have been clearer if the title was "Exporting to run on Linux" not "On Linux" :)
Whoops... :)  Is there any way I can edit the forum title?

That being said, this method does work on Linux... and Windows... and Mac...
 

sylphglitch

Villager
Member
Joined
Feb 4, 2013
Messages
15
Reaction score
3
First Language
English
Primarily Uses
Same process as noted above will work for Windows.


Also if you plan on making any custom .Node files for add-ons you have to use node-webkit that comes from the official site.


For some reason Game.exe doesn't work...
 
Last edited by a moderator:

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
First Language
English
Primarily Uses
RMMV
Sorry for necroposting but thank you so much! This is a really big help! :)
 

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
First Language
English
Primarily Uses
RMMV
My first post is a tutorial. Perfect.


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.


Hidden Content


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.


Hidden Content


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.


Hidden Content


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.


Hidden Content


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.


Hidden Content


Feedback is welcomed and highly appreciated.
Hey there, thank you for this tutorial. I tried using the web2exe option and I received this error message when trying to run the binary:


"shared library error"


Any thoughts on how to fix this, thank you :)
 
Last edited by a moderator:

Klace

Villager
Member
Joined
Mar 2, 2016
Messages
9
Reaction score
0
First Language
English
Primarily Uses
Without using Web2Exe, which file will the executable be after exporting for Linux?
 

idillicah

Villager
Member
Joined
Jan 19, 2014
Messages
28
Reaction score
3
First Language
English
Primarily Uses
Hey hi hello everyone!

First off, thanks for all your help. I've been reading the forums while making my game and so far it's been great.

However, I've found myself stuck.

I need to export to Linux ARM and all the options listed here are for Linux x64 or x86.

Any ideas on how to export to Linux ARM so that we can export for platforms like the Raspberry Pi?

Thanks!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top