Hi, Recently I've been doing a lot of hacking on my local tree for OS X projects. The lack of support in winemenubuilder to generate application bundles for installed applications from ShellLinks like we do for FreeDesktop items has been killing me. I've just been building simple wrapper scripts which is fine but very ugly. I've recently spoken with Sveinbjorn Thordarson who wrote the Platypus App Bundler (which is a very kick-ass utility) and he has allowed me to use his code under LGPL to extend winemenubuilder.
Some nice things about Platypus is that while its written in Objective C, its very modular and already has an optional cli interface. I'm pretty sure I can isolate out all of the stuff we don't need in short order and extend winemenubuilder a bit with its code as a reference. I'm going to file a detailed bug report describing how we need to extend winemenubuilder, what application bundles are, and what else we will need.
If anyone is interested in jumping in and helping, we still need to do conversion from *.ico to a *.icns icons which requires a bit of hacking. Currently I'm doing something like the following
1. hacked winemenubuilder converts and export the icon (*.ico file) to png 2. convert from png to tiff sips -s format tiff [png file] --out [(converted file).tiff] 3. Convert tiff to icns tiff2icns -noLarge [tiff file] [icns file]
I kind of doubt Alexandre will want a patch doing all of this conversion for simple icons and I'm sure someone has to have documented icns somewhere. The iPhone App bundles seem to support *.png icons but from my reading it does not seem that standard OS X applications do. Maybe this will change in Snow Leopard, I've tried to hack my test bundles and make them use normal png images without much luck. If your interested in helping, researching this and if needed, adding exporting the icon resources straight to icns would be a good place to start.