aMule Forum

English => Multiplatform => Mac OSX => Topic started by: gtoso on December 01, 2007, 08:44:48 PM

Title: Mac_packager amended and aMuleGUI.app bundle
Post by: gtoso on December 01, 2007, 08:44:48 PM
Hi,
I made some changes to mac_packager,
it's not the maximum but it works.

I also created an app bundles for aMuleGUI, the icon is not so good  ::)

mac_packager changes

if amuled, alcc and cas exist, it copy them in MacOS
it copy skins in SharedSupport
it copy the webserver templates in SharedSupport instead of Resources:
so amule sees them, but amuleweb search them in /usr/local/share/amule/webserver
(I temporarily use a symlink)
if amulegui exists, it populates the aMuleGUI bundle
it copy all the required MacPorts libraries from /opt/local/lib to Frameworks and it update their info

I'm sorry for my bad English  :P

Goodbye,
Gianluca.
Title: Re: Mac_packager amended and aMuleGUI.app bundle
Post by: Kry on December 03, 2007, 02:02:20 AM
We should probably make the mac version self-contained actually. Mac style, no installation or strange files somewhere else, just put all (except temp/incoming) inside the bundle.
Title: Re: Mac_packager amended and aMuleGUI.app bundle
Post by: gtoso on December 03, 2007, 01:12:11 PM
We should probably make the mac version self-contained actually. Mac style, no installation or strange files somewhere else, just put all (except temp/incoming) inside the bundle.

Yes, I tried to do it, even if I don't like so much this way.
I modified script for my use, to build amule for me and my friends.
But if it can help you, you can use it as you want.

Emm I did some mistake, I didn't know Apple bundle and related functions as LSFindApplicationForInfo.
I have just discovered that:
amule/amulegui find webserver dir (template) if it is in his bundle under SharedSupport
(usefull if you want to set Web template from Preferences -> Remote Controls)
amuleweb find it if it's in the FIRST aMule bundle found under Resources  ???

That is why it didn't work for me and I had to create /usr/local/share/amule/webserver symlink,
amuleweb found the wrong bundle:

Code: [Select]
super:~ gtoso$ /Users/Shared/findamule
1) amuleBundleUrl:
<CFURL 0x3035e0 [0xa07bb150]>{type = 0, string = /Users/gtoso/mulo/amule-cvs/aMule.app/, base = (null)}

2) amuleBundle:
CFBundle 0x303f70 </Users/gtoso/mulo/amule-cvs/aMule.app> (not loaded)
super:~ gtoso$ su - administrator
Password:
super:~ administrator$ /Users/Shared/findamule
1) amuleBundleUrl:<CFURL 0x303800 [0xa07bb150]>{type = 0, string = /Applications/aMule-CVS-20071122-Mac_UniversalBinary_Tiger-with_amuled/aMule.app/, base = (null)}

2) amuleBundle:
CFBundle 0x3042b0 </Applications/aMule-CVS-20071122-Mac_UniversalBinary_Tiger-with_amuled/aMule.app> (not loaded)

3) webserverDirUrl:
<CFURL 0x309610 [0xa07bb150]>{type = 0, string = /Applications/aMule-CVS-20071122-Mac_UniversalBinary_Tiger-with_amuled/aMule.app/Contents/Resources/webserver/, base = (null)}

4) absoluteURL:
<CFURL 0x309610 [0xa07bb150]>{type = 0, string = /Applications/aMule-CVS-20071122-Mac_UniversalBinary_Tiger-with_amuled/aMule.app/Contents/Resources/webserver/, base = (null)}

pathString:
/Applications/aMule-CVS-20071122-Mac_UniversalBinary_Tiger-with_amuled/aMule.app/Contents/Resources/webserver
super:~ administrator$
Title: Re: Mac_packager amended and aMuleGUI.app bundle
Post by: gtoso on December 03, 2007, 11:51:41 PM
I made some correction to mac_packager.