About Me Blog Photography Portfolio

Feb 28th

How to Sign a Playbook Application from the Command Line

11:11 pm - Post Category: Nickness

So I wrote a Howto on the Blackberry Developer forums on Packaging up your Playbook app and Signing it from the Command line. You can find the original forum thread here: http://tncr.ws/AksY

Firstly, of course is packaging your app:

Quote:


blackberry-airpackager -package YOURAPP.bar YOUR-app.xml blackberry-tablet.xml YOURAPP.swf blackberry-tablet-icon.png ANYEXTRAIMAGES.png YOURSPLASH.png


Now to Sign your app:

1st step CMD cd into BB SDK directory (or have this dir in your PATH)
2nd step - copy CSJ files into \bin (I PUT ALL MY FILES TOGETHER FOR SAKE OF SHORTER COMMAND LINES)

< MAKE A CSK FILE >
Quote:


blackberry-signer -csksetup -cskpass -storepass < password >


This makes a file under (on my Win 7 computer) : C:\Users\Youraccount\AppData\Local\Research In Motion\barsigner.csk


< REGISTER WITH RIM >
Quote:


blackberry-signer -register -csjpin < Password (NOTE: LOWERCASE) from online Signed key registration > -cskpass < Password from CSK step > client-RDK-WHATEVERYOURNUMBERIS.csj



< MAKE CERTIFICATE >
Quote:


blackberry-keytool -genkeypair -keystore NAMEOFCERT.p12 -storepass < new-password-forthis-store > -dname "cn=< NAME OF YOUR COMPANY -must be the same in your app and your online vendor account >" -alias author



Please Note Also note that the option "-alias author" is not optional, this has to be part of your command exactly as it is in this example code....and not changed.


< Double signing - first step >
Quote:


blackberry-signer -verbose -cskpass < CSK PASSWORD FROM FIRST STEP > -keystore YOURCERT.p12 -storepass < YOUR STORE PASSWORD > < YOUR BAR FILE > RDK



< Double Signing - second Step >
Quote:


blackberry-signer -keystore YOURCERT.p12 -storepass < YOUR STORE PASSWORD > < YOUR RIM-SIGNED BAR FILE > author



PLEASE NOTE: you must copy these exactly except for where I TYPED IN CAPS AND PUT TRIANGLE BRACKETS - these you change to your hearts content, otherwise the rest of the commands NEED to be there, such as the word "author" and "RDK" etc...

Add link:
Tweet this! Share on Facebook Digg it! Share on Linkedin!

Add Comment


   NickDodd.com © Tensioncore 2012