Linux install packages

Started by elias4444, October 10, 2005, 02:50:22

Previous topic - Next topic

elias4444

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).
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

elias

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

elias4444

Thank you... that process worked beautifully!
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com