Sign your application from the command-line
You can sign your application during the packaging process using the
blackberry-nativepackager tool. Alternatively, you can package and sign
your application using separate commands. The following steps demonstrate how to sign your
application after you package it into a BAR file using
blackberry-nativepackager. You must sign your application before you
publish it.
Sign your application by using the blackberry-signer tool. You need to
specify the keystore password that you created when you configured application signing in the
-storepass parameter.
You can find blackberry-signer in bin subfolder where you installed the BlackBerry Native SDK for Tablet OS.
Before you begin:
- Package your application into a BAR file (.bar file). For more information about packaging your application, see Package your application from the command line.
- Make sure you increment the version number of your application. For more information about version numbers, see Assigning a version number to your application.
- Configure your computer to sign applications. For more information about configuring your computer to sign applications, see Configure application signing from the command line.
- If you connect to the Internet through a proxy server, you must specify additional command line options to contact the RIM Signing Authority. For more information about using a proxy server from the command line, see Using a proxy server from the command line.
blackberry-signer -storepass KeystorePassword BAR_file.barYour BAR file contains your signed application. You can publish your BAR file to BlackBerry App World storefront for distribution. For more information about distributing your applications through BlackBerry App World, see the Vendor Portal Administration Guide on the BlackBerry website.