Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 2.4 KB

wiki-building.md

File metadata and controls

38 lines (26 loc) · 2.4 KB

Building and Exe using NW.js

Thanks to the awesome folks at Node.js and NW.js, packaging RocketTux with a copy of the open source Chromium browser is super easy. It even works for Linux and Windows. All other platforms are not supported.

To greatly simplify the process, I created a bash script that can be run on Linux with a standard Bash shell or on Windows using Git Bash. Read the script to see the steps that it goes through (which are essentially, download/extract/copy/rename files). Here are the instructions:

Linux

  1. Download RocketTux, either using Git or as a zip file. If you don't need the Git history you save a lot of disk space by downloading the repo as zip file.
  2. cd into RocketTux directory and type

./builder

  1. Choose your platform and the correct NW.js will be downloaded.
  2. Wait for the files to be combobulated.
  3. cd into the build directory and type

chmod -x RocketTux

  1. Run the game by typing ./RocketTux
  2. Future builds will reuse the NW.js file you already downloaded. To build for a different platform, simply rename the NW.js download with a minus sign as the first character. You can also use the -q or --quick switch to only update the RocketTux specific files that have changed.

You may encounter issues with outdated NS.js dependencies, depending on your Linux distro, but they can usually be fixed by simply running the update function of your package manager. Either way, the console output will tell you what is out of date.

Windows

  1. Download and install Git Bash.
  2. Download wget.exe and put it in C:\Program Files\Git\mingw64\bin\
  3. Open Windows Explorer, left click on My Documents, right click and choose Git Bash Here.
  4. Download RocketTux with Git by typing

git clone /~https://github.com/Tatwi/RocketTux.git

  1. cd into the rockettux directory and type

./builder

  1. Choose your platform and the correct NW.js will be downloaded.
  2. Wait for the files to be combobulated.
  3. In Windows Explorer open the RocketTux\build folder and double click on RocketTux.exe to play the game.
  4. Future builds will reuse the NW.js file you already downloaded. To build for a different platform, simply rename the NW.js download with a minus sign as the first character. You can also use the -q or --quick switch to only update the RocketTux specific files that have changed.