I tried both AppleScript and shell script versions and AppleScript doesn't really add anything, so it's probably better to go with shell script and generate the bundle manually.
I'll see if I can help smoothing it out.
--
Pelle Johansson
17 aug 2011 kl. 00.06 skrev Steven Edwards:
> You might be interested in this. It allows icons and localized
> resources. I've just not gotten around to doing all the polish.
>
>
> ---------- Forwarded message ----------
> From: Steven Edwards
winehacker@gmail.com
> Date: Sat, Jun 18, 2011 at 5:43 AM
> Subject: winemenubuilder: appbundle patch 20110618
> To: Wine Developers List
wine-devel@winehq.com
>
>
> Hi,
> I've finally gotten back around to hacking the *.app bundle support in
> winemenubuilder and come close to having something that mostly works.
> There are still things that need to be cleaned up and further
> abstracted, and a bit more logic to work out. I wanted to go ahead and
> send this out in case anyone else wants to play around with it, or if
> for some reason I am unable to finish hackin on it.
>
> Some notes:
>
> - The first icon/bundle always seems to get the wrong icon, and uses
> the default wine icon. I need to take some time to understand the code
> a bit better and see why this is.
>
> - Bundles are created in $HOME/Applications/wine and icon's are
> generated using the icns code. Support for building bundles for
> shortcuts on $HOME/Desktop has not been hacked on yet.
>
> - There are still plenty of bugs to resolve such as making sure we are
> actually using the correct icon, and properly setting various values
> in the app *.plist. There are a couple of alternative ideas I looked
> in to, such as doing some sort of spawn/fork to invoke
> /usr/libexec/PlistBuddy rather than using the CoreFoundation API, but
> I worry about creating race conditions and other performance problems
> when installing software that creates many icons, such as Microsoft
> Office.
>
> - I've tried to make this un-invasive to the existing xdg code path
> (as one can run a FreeDesktop on Darwin/OS X) but have not had a
> chance to actually test supporting both menu systems at the same time.
>
> I welcome your feedback.
> Thanks
> --
> Steven Edwards
>
> "There is one thing stronger than all the armies in the world, and
> that is an idea whose time has come." - Victor Hugo
>
>
>
> --
> Steven Edwards
>
> "There is one thing stronger than all the armies in the world, and
> that is an idea whose time has come." - Victor Hugo
> <appbundles_20110617.diff>