Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

App for Adding Resources to Mac Bundle (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Arrays of Arrays vs. Multidimensional Arrays vs...
Next thread: Help: Effecting Keyboard keydown programatically


FW: Special Valentine's Offer for Valentina - Beat the Price Increase!   -   Lynn Fredricks
  App for Adding Resources to Mac Bundle   -   Stuart Tevendale
   Re: App for Adding Resources to Mac Bundle   -   Tom Benson
   Re: App for Adding Resources to Mac Bundle   -   Peter De Berdt
   Re: App for Adding Resources to Mac Bundle   -   Dennis Birch
   Re: App for Adding Resources to Mac Bundle   -   Tim Jones

App for Adding Resources to Mac Bundle
Date: 03.08.07 11:21 (Fri, 3 Aug 2007 11:21:16 +0100)
From: Stuart Tevendale
Anyone know of a application to automatically add resources (graphics,
files, etc) to a Mac Bundle once it's been built in RB?

Thanks

Stuart

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: App for Adding Resources to Mac Bundle
Date: 03.08.07 11:29 (Fri, 3 Aug 2007 20:29:40 +1000)
From: Tom Benson
Thomas Reed made a program called App Bundler a while back, but I'm
not sure he's still around, at least his website (bitjuggler.com) has
disappeared.

Cheers,
Tom

On 03/08/2007, at 8:21 PM, Stuart Tevendale wrote:

> Anyone know of a application to automatically add resources (graphics,
> files, etc) to a Mac Bundle once it's been built in RB?
>
> Thanks
>
> Stuart
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: App for Adding Resources to Mac Bundle
Date: 03.08.07 11:42 (Fri, 3 Aug 2007 12:42:19 +0200)
From: Peter De Berdt
You could just write a simple shell script that does a "cp ..." of
the relevant files to your application's Resources folder. The
simplest approach would be to make some directory in your home folder
where you put your app and resources and then just run the shell script.

Example

app_resource
-> res_copy.sh (with executable flag set)
-> MyApplication.app
-> resources_to_copy > put all your resources in here

Then just use cp to copy all of the files and folders in
resources_to_copy to MyApplication.app:Contents:Resources

You could make it more general by providing a way to call the bash
script with arguments, so you can use something like:
./res_copy.sh --application MyApplication.app --resources
resources_to_copy

Google around for bash scripting, there are lots of resources around.

On 03 Aug 2007, at 12:29, Tom Benson wrote:

> Thomas Reed made a program called App Bundler a while back, but I'm
> not sure he's still around, at least his website (bitjuggler.com) has
> disappeared.
>
> Cheers,
> Tom
>
> On 03/08/2007, at 8:21 PM, Stuart Tevendale wrote:
>
>> Anyone know of a application to automatically add resources
>> (graphics,
>> files, etc) to a Mac Bundle once it's been built in RB?

Best regards

Peter De Berdt

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: App for Adding Resources to Mac Bundle
Date: 03.08.07 14:24 (Fri, 3 Aug 2007 06:24:57 -0700)
From: Dennis Birch
Along these same lines, you can do the same thing in an IDE Script,
and combine it with a call to BuildApp to build your bundle and move
files into it all in one tidy package. You use DoShellCommand in your
IDE script to execute your shell commands.

On 8/3/07, Peter De Berdt <<email address removed>> wrote:
> You could just write a simple shell script that does a "cp ..." of
> the relevant files to your application's Resources folder. The
> simplest approach would be to make some directory in your home folder
> where you put your app and resources and then just run the shell script.
>
> Example
>
> app_resource
> -> res_copy.sh (with executable flag set)
> -> MyApplication.app
> -> resources_to_copy > put all your resources in here
>
> Then just use cp to copy all of the files and folders in
> resources_to_copy to MyApplication.app:Contents:Resources
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: App for Adding Resources to Mac Bundle
Date: 03.08.07 18:36 (Fri, 3 Aug 2007 10:36:00 -0700)
From: Tim Jones
On Aug 3, 2007, at 3:21 AM, Stuart Tevendale wrote:

> Anyone know of a application to automatically add resources (graphics,
> files, etc) to a Mac Bundle once it's been built in RB?

Here's how I do this is in an IDE script:

--------
Dim MyStr As String
Dim Failed As Boolean

BuildMacMachOUniversal = True
BuildLinux = True
// Build Linux
MyStr = BuildApp(4)
// Build OS X
MyStr = BuildApp(8)
If MyStr <> "" Then
// One Line
MyStr = DoShellCommand("cp $PROJECT_PATH/bru-server.cmd " + Chr
(34) + "$PROJECT_PATH/BRU Server Console.app/Contents/MacOS/" + Chr
(34), 5000)
// end of line
If MyStr <> "" Then
Print MyStr
Failed = True
End If
// one line
MyStr = DoShellCommand("cp $PROJECT_PATH/BRUConsole.dylib " + Chr
(34) + "$PROJECT_PATH/BRU Server Console.app/Contents/MacOS/" + Chr
(34), 5000)
// end of line
If MyStr <> "" Then
Print MyStr
Failed = True
End If
// one line
MyStr = DoShellCommand("/Developer/Tools/SetFile -a V " + Chr
(34) + "$PROJECT_PATH/BRU Server Console.app/Contents/MacOS/
rbframework.dylib" + Chr(34), 5000)
// end of line
// One line
MyStr = DoShellCommand("/Developer/Tools/SetFile -a V " + Chr
(34) + "$PROJECT_PATH/BRU Server Console.app/Contents/Frameworks/" +
Chr(34) + "*", 5000)
// end of line
End If

If Not Failed Then
Print "Build and binary copy complete"
Else
Print "Build failed"
End If

--------
Just run that to build your app instead of just clicking the build
button.

Note that the DoShellCommand lines should all be one long line up to
the "If MyStr" on the next line and MyStr on the BuildApp being empty
means the compiled failed, but MyStr being empty on the shell
commands means the command succeeded.

HTH,
Tim

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>