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: Select all
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
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/