It is currently Fri Mar 22, 2019 3:22 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Tool for Info.plist, UPX
PostPosted: Thu Jul 12, 2012 8:52 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue May 20, 2008 2:12 am
Posts: 661
Location: Cologne, Germany
Hi there,

I was struggling about the need to copy the Info.plist to the compiled-bundle manually every time...
This Tool for the Tools-menu does the same. Use at own risk! :-)

1. Just create the Info.plist according to your needs, and save it in the same directory as the source, like
mysource.pb
info.plist

2. Add this Tool:
Commandline: cp
Arguments: "%PATH/info.plist" "%EXECUTABLE/Contents"
Working Directory: %PATH
Name: Copy List (or as you like)
Event to trigger: After Create Executable

That's it. Everytime, you create the executable of your App-Bundle, the Info.plist gets copied to the bundle automagically ... It doesn't even matter, where you want to put the App-Bundle.



If you like to compress the executable inside the .App-Bundle, you can use this:

1. PureBasic-Code, compile to /Users/joe/makeupx in Console-format
Code:
file$ = ProgramParameter(0)
part$ = GetFilePart(file$)
path$ = GetPathPart(file$) + part$ + "/Contents/MacOS/" + Left(part$,Len(part$)-4)
RunProgram("/usr/bin/upx","-9 --lzma " + path$,"") ; --lzma is optional, since I use the custom lzma-build for Mac OS X from www.idrix.fr


2. Add this Tool:
Commandline: /Users/joe/makeupx
Arguments: "%EXECUTABLE"
Working Directory:
Name: UPXer or as you like)
Event to trigger: After Create Executable

For the Mac, you need to get UPX from here: http://www.idrix.fr/Root/content/category/7/26/46/

_________________
Regards,
JamiroKwai

---
5.10-x64/x86 - MacBook Pro, Mountain Lion
My Blog (German): http://www.quadworks.de


Last edited by jamirokwai on Fri Oct 26, 2012 11:32 am, edited 5 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Tool for Info.plist
PostPosted: Fri Jul 13, 2012 4:22 am 
Offline
Addict
Addict

Joined: Mon Aug 04, 2008 10:56 pm
Posts: 1100
Location: Seattle, USA
Thanks jamirokwai!

I struggled with this a while back and couldn't seem to find the right combination.

This works perfectly! I thought %PATH or %EXECUTABLE would have to be replaced with my info but that is not the case. I just used the text as shown!.

_________________
MacBook Pro-r, OSX 10.11.6, Command Line Tools 7.3 (10.11), PB-5.60x64


Top
 Profile  
Reply with quote  
 Post subject: Re: Tool for Info.plist, UPX
PostPosted: Wed Jul 18, 2012 3:10 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue May 20, 2008 2:12 am
Posts: 661
Location: Cologne, Germany
Added how-to to UPX your executables after compilation. See first post.

_________________
Regards,
JamiroKwai

---
5.10-x64/x86 - MacBook Pro, Mountain Lion
My Blog (German): http://www.quadworks.de


Top
 Profile  
Reply with quote  
 Post subject: Re: Tool for Info.plist, UPX
PostPosted: Sat Apr 05, 2014 10:30 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 30, 2013 4:39 pm
Posts: 414
jamirokwai wrote:
Hi there,

I was struggling about the need to copy the Info.plist to the compiled-bundle manually every time...
This Tool for the Tools-menu does the same. Use at own risk! :-)

1. Just create the Info.plist according to your needs, and save it in the same directory as the source, like
mysource.pb
info.plist

2. Add this Tool:
Commandline: cp
Arguments: "%PATH/info.plist" "%EXECUTABLE/Contents"
Working Directory: %PATH
Name: Copy List (or as you like)
Event to trigger: After Create Executable

That's it. Everytime, you create the executable of your App-Bundle, the Info.plist gets copied to the bundle automagically ... It doesn't even matter, where you want to put the App-Bundle.


I think there is a mistake in "Arguments: "%PATH/info.plist" "%EXECUTABLE/Contents""
On my MAc it works only if I remove the slash after %PATH
Arguments: "%PATHinfo.plist" "%EXECUTABLE/Contents"


Top
 Profile  
Reply with quote  
 Post subject: Re: Tool for Info.plist, UPX
PostPosted: Sun Apr 06, 2014 6:29 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3319
Location: Netherlands
jamirokwai wrote:
I was struggling about the need to copy the Info.plist to the compiled-bundle manually every time...
This Tool for the Tools-menu does the same. Use at own risk! :-)

There's also another tool to work with Info.plist I created together with Joe Baker.
viewtopic.php?f=27&t=53905

_________________
macOS 10.14 Mojave, PB 5.62 x64


Top
 Profile  
Reply with quote  
 Post subject: Re: Tool for Info.plist, UPX
PostPosted: Sun Apr 06, 2014 1:48 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue May 20, 2008 2:12 am
Posts: 661
Location: Cologne, Germany
wilbert wrote:
jamirokwai wrote:
I was struggling about the need to copy the Info.plist to the compiled-bundle manually every time...
This Tool for the Tools-menu does the same. Use at own risk! :-)

There's also another tool to work with Info.plist I created together with Joe Baker.
viewtopic.php?f=27&t=53905


Hi wilbert,
thanks for the hint!

_________________
Regards,
JamiroKwai

---
5.10-x64/x86 - MacBook Pro, Mountain Lion
My Blog (German): http://www.quadworks.de


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye