" /> Richard Hult: March 2008 Archives

« February 2008 | Main | July 2008 »

March 27, 2008

GTK+ Application bundles on Mac

I previously wrote about Mac integration for GTK+ applications, and another important part of that is to create app bundles. An app bundle is a self-contained packaged up version of your application that can be distributed easily and put wherever the user wants by using simple drag and drop. This is a very common way of distributing applications on Mac.

To make it easier to create such packages of GTK+ applications, we have created a tool that does most of the work. All you have to do is to setup a small configuration file that points the tool to your binary and any data files that you want to ship. All dependent libraries are sucked in automatically. The application must be able to find its data files dynamically of course, since there is no hard coded path where it will end up.

You can take a look at the bundle file for Gossip for a quite simple example.

I have some plans to add support for dragging in frameworks and not just libraries, and to add better support for translations and other specific resources.