Blackberry packaging and signing

I've written a couple of .bat files to help me out with packaging and distributing to emulator, as well as with signing.

Make sure before you submit your app to RIM's market, that you go through the SIGNING steps -- their portal will accept an unsigned file, which they will likely reject, and you'll get to change the name of your app, because it'll be stuck forever in the system with an unsigned file id. (and you thought HP's catalog was primitive - just try deciphering RIM's error messages .. they might as well just replace them all with "You're hosed, pick a new app name, and start over.")

packaging and distributing to emulator, assuming that you have all the files in their default locations, you have the 7-zip zip utility installed. Modify your filenames and output paths to taste.
del /q gvbb.zip
"c:\Program Files\7-Zip\7z.exe" u -xr!*.bat -xr!*.zip -xr!.git* gvbb.zip *
set JAVA_HOME="c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\jre"
"c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp\bbwp" c:\users\eric\ripplesites\gv\gvbb.zip -o c:\temp\gvbb
"c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp\blackberry-tablet-sdk\bin\blackberry-deploy" -installApp -password blackberry -device 192.168.109.128 -package c:\temp\gvbb\gvbb.bar
And now for the same one that does signing (replace "YourKeyPassword" with the passkey you used to generate your signing key):
del /y /q gvbb.zip
"c:\Program Files\7-Zip\7z.exe" u -xr!*.bat -xr!*.zip -xr!.git* gvbb.zip *
set JAVA_HOME="c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\jre"
"c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp\bbwp" c:\users\eric\ripplesites\gv\gvbb.zip -o c:\temp\gvbb -gcsk YourKeyPassword -gp12 YourKeyPassword
"c:\program files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp\blackberry-tablet-sdk\bin\blackberry-deploy" -installApp -password blackberry -device 192.168.109.128 -package c:\temp\gvbb\gvbb.bar

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Twitter