Exporting On Linux and other tips.

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
Spoiler



[IMG]http://i.imgur.com/ALX9hI7.png[/IMG]

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
Spoiler



[IMG]http://i.imgur.com/H2GIw7j.png[/IMG]



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
Spoiler



[IMG]http://i.imgur.com/2XIjpOP.png[/IMG]



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
Spoiler



[IMG]http://i.imgur.com/ROBGrhQ.png[/IMG]

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
Spoiler



[IMG]http://i.imgur.com/3AtCwV6.png[/IMG]

Feedback is welcomed and highly appreciated.
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" 🙂
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...
removed
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...
Sorry for necroposting but thank you so much! This is a really big help! 🙂
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 🙂
Without using Web2Exe, which file will the executable be after exporting for Linux?
Without using Web2Exe, which file will the executable be after exporting for Linux?

The nw file.
According to some rumours the editor is going to get a native linux version:


https://www.gamingonlinux.com/articles/want-to-make-an-rpg-game-looks-like-rpg-maker-mv-may-be-coming-to-linux.6770


Can someone from enterbrain confirm or deny it? 
According to some rumours the editor is going to get a native linux version:


https://www.gamingonlinux.com/articles/want-to-make-an-rpg-game-looks-like-rpg-maker-mv-may-be-coming-to-linux.6770


Can someone from enterbrain confirm or deny it? 

I hope so 🙂
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!

Original thread: https://forums.rpgmakerweb.com/threads/exporting-on-linux-and-other-tips.52689/