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.
- Open a command prompt.
- Navigate to the folder where your SWF application and XML configuration files are stored.
- Type the
following command to package your application.
blackberry-airpackager -package Project_name.bar 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
- 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.
blackberry-signer -storepass <KeystorePassword> <BAR_file.bar>
Your .bar file contains your signed application. You can publish the .bar file to BlackBerry World storefront for distribution.