Deploy Mono application without Framework on Mac

2019-04-04 08:45发布

问题:

I have a c#-program, that works well under Mono and on OSX, I also was able to create an app-directory for that program. Now I want to distribute it, but I don't want to force the user to install mono, since this is unusual under Mac (and has some side-effects, that I want to avoid).

I already tried to build a bundle with mkbundle, but mkbundle doesn't work correctly under Mac.

I should add, that I use GTK.

What is the easiest way to build a compleley independent app under Mac? Is there any good tutorial? Is there a good tool, that could help?

回答1:

Ask Miguel (December 9 2010 blog post)

MonoMac: we just released MonoMac 0.4 and we are now adding support for creating self-contained application bundles that developers can redistribute themselves or even submit to the Apple AppStore for MacOS.

MonoMac has been a lot of work, mostly, due to popular contributions. There is a nice emerging community of new contributors to Mono that has sparked in the last few weeks.



回答2:

Did you try macpack?

http://www.mono-project.com/Guide:Running_Mono_Applications



回答3:

It should be possible to use mkbundle in the linking of mono assemblies to produce a "portable app" with no requirement on installing the runtime.

http://www.mono-project.com/Linker