LWJGL Forum

Programming => General Java Game Development => Topic started by: elias4444 on October 10, 2005, 02:50:22

Title: Linux install packages
Post by: elias4444 on October 10, 2005, 02:50:22
Just a quick question for the Oddlabs people out there... how did you package the game with JRE into a single .sh file? I've been looking for a way to make simple install packages for Linux and Mac, but haven't found anything yet (on Windows I just use JSmooth and NSIS).
Title: Linux install packages
Post by: elias on October 11, 2005, 06:35:47
Well, Macs are the easiest and most elegant, since they don't really installers, except for system components. You need to create an .app package and zip it up in an .dmg (with hdiutil) or a .zip.

For linux, we used "makeself" to create a self-extracting "installer" package. In fact, to compress the package even further, we do the unpacking in three steps:

1. Run the .sh file makeself made to uncompress a 7zip unpacker and "TribalTrouble.7zip", which contains the actual game data + JRE.
2. The .sh script extracts the 7zip file with the bundled unpacker from a makeself post-script.
3. The 7zip executable and TribalTrouble.7zip is deleted
(4. The post-script also asks for and creates a link to tribal trouble from the user's desktop)

We have to bundle 7zip, since no linux distrobution has built in support for 7zip.

 - elias
Title: Linux install packages
Post by: elias4444 on October 12, 2005, 14:49:01
Thank you... that process worked beautifully!