[Mono-osx] Is there a way to trim stuff from macpack?

Grzegorz Adam Hankiewicz gradha at titanium.sabren.com
Mon Jan 31 20:57:35 EST 2011


El 01/02/2011, a las 01:58, Miguel de Icaza escribió:
> The MonoMac project has a tool that does this.   A further refinement
> is to use Mono's linker.

Is this tool the bmac.exe specified in github's repository? I can't find it anywhere on my hard disk, and there doesn't seem to be any other binary.

> If you want to roll this on your own, you can still use Mono's linker
> by hand, it is documented on our web site.

Are you refering to the web page at http://www.mono-project.com/Linker? It seems to refer to old versions of the linker, I guess it is the one I found at /Library/Frameworks/Mono.framework/Versions/2.8.2/bin/monolinker.

I've tried following the instructions linked from there but they don't work any more (-p false says "System.ArgumentException: The requested value 'false' was not found").

But I've tried running "monolinker -a build/bbiribbabba.app/Contents/Resources/bbiribbabba.exe -c copy" and replaced the Resources directory with the generated output directory. The program still runs and now the bundle is down to 7.3MB. How can I verify nothing else is required to run on another system other than a test? Is there something like the otool -L command?


More information about the Mono-osx mailing list