Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I turn a Mono .exe into a bundle for OS X?

I have an app that was developed for Windows but runs fine on MacOS under mono without any modifications (yay!). However, since it's an exectutable, OSX doesn't recognize it as a native file type, meaning you have to drop to the command line to run 'mono appname.exe'. It also doesn't show the application icon. In case it matters, my test environment is Snow Leopard w/Mono 2.6.1.

As I understand it, in the Mac world, making a user drop to the command line is unconscionably rude. Is there a 'right way' to deploy a Mono app so that it can run by clicking on an icon -- perhaps the Mac equivalent of a shortcut if such a thing exists? I've heard of something called a 'bundle' but maybe those aren't for Mono/.NET apps.

So, is there a 'right way' to make running the app easier on a user?

like image 708
Jason Champion Avatar asked Jan 30 '10 20:01

Jason Champion


3 Answers

Michael Hutchinson just wrote a great article on how to do this:

http://mjhutchinson.com/journal/2010/01/24/creating_mac_app_bundle_for_gtk_app

It helped me tremendously in trying to do exactly what you are doing.

like image 174
jpobst Avatar answered Oct 22 '22 00:10

jpobst


Monobjc is the best route to go imo.

http://www.monobjc.net/

like image 40
Lounges Avatar answered Oct 22 '22 02:10

Lounges


You could also run macpack from the command-line.

like image 1
flipdoubt Avatar answered Oct 22 '22 02:10

flipdoubt