How to create an OSX package that runs the Mono application “natively” (Bootstrapper)

Instead of having my users go to the terminal and launch my application using the mono <x> command, I would like to give them the experience of clicking on "X.app", and Mono runtime runs my .NET assemblies.

Has anyone done this?

+4
source share
3 answers

FYI, MonoDevelop 2.2 (December 2009) has a macpack command line tool that builds a working Finder ".app" folder structure for you, with a bootloader and the right filter hierarchy. See MonoDevelop or Google Online Docs for macpack, etc. MonoDevelop itself is pretty far across OS X, so it’s worth downloading. The debugger does not yet work on OS X.

+5
source

See this question for a solution. Your users do not even have to be pre-installed.

+5
source

As another publication shows, all you need to do is a software package following the .app layout for the software.

In general, you need to provide a bash script that does something simple:

 #!/bin/sh exec /Library/Frameworks/Mono.framework/Versions/Current/bin/mono YourApp.exe 

That's all you need, but you can use this script to verify Mono installation, and if not, suggest installing it. See how Monodevelop does it:

http://anonsvn.mono-project.com/viewvc/trunk/monodevelop/main/build/MacOSX/monodevelop?revision=148173&view=markup

+5
source

All Articles