Temple of The Roguelike Forums

Development => Programming => Topic started by: curiousdannii on February 23, 2014, 05:00:22 AM

Title: Help request for OSX installer
Post by: curiousdannii on February 23, 2014, 05:00:22 AM
Hi, I'm one of the developers of Kerkerkruip (announcements here (http://forums.roguetemple.com/index.php?topic=2895.0) and here (http://forums.roguetemple.com/index.php?topic=3351.0)) and for our upcoming version 9 we want to offer installers for the three major desktop OSes. We know how to make installers for Windows and Linux (well for Debian at least), but we're having trouble with OSX.

Our situation is:


Any advice or expertise will be greatly appreciated! And as an extra incentive, I'm willing to help with my experience for Windows and Debian...
Title: Re: Help request for OSX installer
Post by: Xecutor on February 23, 2014, 01:12:45 PM
Majority of applications are packaged into .dmg image (witch is compressed iso) with symbolic link to /Applications/ folder.
You just drag application bundle to /Applications/ folder and that's it.
All frameworks and additional programs are somewhere in the application bundle.
Python, ruby and perl are installed by default in Mac OS X.
You can make startup script that check if game files were copied into users's folders,
and copy them if they aren't or start the game if they are.
Typical location of mutable application data on Mac OS X is
~/Library/Application Support/{App Name}

You can ask google for application bundle structure.
Title: Re: Help request for OSX installer
Post by: Rickton on February 23, 2014, 03:36:06 PM
You should be able to put everything in an Application Bundle (https://developer.apple.com/library/mac/documentation/corefoundation/conceptual/cfbundles/BundleTypes/BundleTypes.html). I don't know exactly how Gargoyle works, but you should be able to have the executable launched by the bundle be a script that makes Gargoyle launch and open the proper story file.
Title: Re: Help request for OSX installer
Post by: curiousdannii on March 02, 2014, 04:53:24 AM
Thanks for the links and ideas. Will report back how it goes! :)