[Mono-osx] Is there a way to trim stuff from macpack?
Grzegorz Adam Hankiewicz
gradha at titanium.sabren.com
Tue Feb 1 06:17:45 EST 2011
El 01/02/2011, a las 11:31, Grzegorz Adam Hankiewicz escribió:
> El 01/02/2011, a las 02:57, Grzegorz Adam Hankiewicz escribió:
>> 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?
>
> As expected, too good to be true. A remote user says the bundle doesn't work, throwing: "01/02/11 11:26:30 [0x0-0x128128].bbiribbabba[29187] /Users/esti/xx/bbiribbabba.app/Contents/MacOS/bbiribbabba: line 42: ./bin/bbiribbabba: No such file or directory"
>
> Looks like this bin/bbiribbabba is a symbolic link to /usr/bin/mono.
I'm not getting this at all. When run, the binary created by macpack creates the bin subdirectory inside Contents/Resources with a symbolic link to /usr/bin/mono on each run. I don't understand how this is supposed to be working on systems without mono installed, nor why the contents of the bundle need modification, which prevents running the bundle installed in /Applications by a non admin user due to permission denied messages trying to update the bundle.
I've only found sparse docs at http://www.mono-project.com/Guide:Running_Mono_Applications mentioning basic usage and running the macpack tool from commandline doesn't show any other possibly useful switches to change this behaviour.
Is macpack not ready to be used yet?
More information about the Mono-osx
mailing list