aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Mac_packager amended and aMuleGUI.app bundle  (Read 3142 times)

gtoso

  • Official MacOSX Packager
  • Full Member
  • ***
  • Karma: 24
  • Offline Offline
  • Posts: 206
Mac_packager amended and aMuleGUI.app bundle
« 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.
« Last Edit: December 01, 2007, 10:10:57 PM by gtoso »
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Mac_packager amended and aMuleGUI.app bundle
« Reply #1 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.
Logged

gtoso

  • Official MacOSX Packager
  • Full Member
  • ***
  • Karma: 24
  • Offline Offline
  • Posts: 206
Re: Mac_packager amended and aMuleGUI.app bundle
« Reply #2 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$
« Last Edit: December 03, 2007, 01:16:57 PM by gtoso »
Logged

gtoso

  • Official MacOSX Packager
  • Full Member
  • ***
  • Karma: 24
  • Offline Offline
  • Posts: 206
Re: Mac_packager amended and aMuleGUI.app bundle
« Reply #3 on: December 03, 2007, 11:51:41 PM »

I made some correction to mac_packager.

Logged