blackberry / WebWorks-Samples

Collection of BlackBerry WebWorks sample applications
Apache License 2.0
152 stars 143 forks source link

How to build section of Aura README file need instructions for Mac #6

Closed astanley closed 12 years ago

astanley commented 13 years ago

The existing instructions in the Aura README file 'How to build' section are for PC users only. We need to have corresponding instructions for Mac users.

wwwillem commented 13 years ago

First of all, on my MacBook the "config.xml" doesn't work. Put the <?xml.... line upfront as the first one, before the comments.

Next, here is my BUILD script for the 'payment' app. Building "Aura" works exactly the same.

I had to create some symbolic links to avoid the spaces in the "/Developer/...." directory. One of my pet-peeves, never ever put spaces in file names. It simply breaks stuff. We can blame Redmond for introducing this "feature".... :-(

But if you don't use the script, but simply do it from the command line, you will be OK without the symbolic links for "RIM" and "SDK". It's how I did it before creating this script.

!/bin/sh

BD="/Developer/SDKs/RIM/SDK/bbwp" WD="/Users//WebWorks-Samples" cd $WD/Payment echo "-- WebWorks app build --" echo "-- zipping up sources --" zip -r ../Payment.zip * cd $WD echo "-- packaging bar file --" $BD/bbwp $WD/Payment.zip -o $WD/ echo "-- install on emulator --" $BD/blackberry-tablet-sdk/bin/blackberry-deploy -installApp -password playbook -device -package $WD/Payment.bar echo "-- WebWorks build done --"

I hope this helps you to get going, Willem

wwwillem commented 13 years ago

Oops, seems that the website takes away everything between < and > which did damage to my post.

Let's try again:

!/bin/sh

BD="/Developer/SDKs/RIM/SDK/bbwp" WD="/Users/<path-to-dir>/WebWorks-Samples" cd $WD/Payment echo "-- WebWorks app build --" echo "-- zipping up sources --" zip -r ../Payment.zip * cd $WD echo "-- packaging bar file --" $BD/bbwp $WD/Payment.zip -o $WD/ echo "-- install on emulator --" $BD/blackberry-tablet-sdk/bin/blackberry-deploy -installApp -password playbook -device <ip-of-your-emulator> -package $WD/Payment.bar echo "-- WebWorks build done --"

wwwillem commented 13 years ago

.... and one more, I changed 'payment' into 'Payment' with a capital 'P'

if needed, change the script accordingly

jeffheifetz commented 12 years ago

Fixed by Pull Request #14