Sign your application using the command line

Package your application

Add the path to the bin subfolder where you installed the BlackBerry 10 SDK for Adobe AIR to the PATH environment variable for your operating system.

  1. Open a command prompt.
  2. Navigate to the folder where your SWF application and XML configuration files are stored.
  3. Type the following command to package your application.
    blackberry-airpackager -package Project_Name-app.xml 
       Project_Name.swf [ANE files].ane [icon_file] [other_project_files]

For more information about command line options, run blackberry-airpackager from the command line with no options.

Sign your application

Before you begin:
  • Package your application into a .bar file.
  • Configure your computer to sign applications.
  • If you connect to the Internet through a proxy server, you must specify additional command line options to contact the BlackBerry Signing Authority.

You can sign your application during the packaging process using the blackberry-airpackager tool. Alternatively, you can package and sign your application using separate commands. The following command demonstrates how you can sign your application after you package it into a .bar file. You must sign your application before you can publish it.

Sign your application by using the blackberry-signer tool. In the -storepass parameter, you must specify the keystore password that you created when you configured application signing in the -storepass parameter.
blackberry-signer -storepass <KeystorePassword> <>

Your .bar file contains your signed application. You can publish the .bar file to BlackBerry World storefront for distribution.