Packaging, deployment and distribution

When you create a Qt app for BlackBerry 10, you can build, package, and deploy your app all within Qt Creator. After you build the app, an additional folder is created in your workspace that contains the .bar file for your app.

Signing an application must be done manually. After you sign your app, you can submit the .bar file to BlackBerry World for distribution. The steps for signing an app using the BlackBerry 10 Native SDK command line tools are outlined below.

To use the BlackBerry 10 Native SDK command line tools, open a command prompt and navigate to <path_to_ndk>\<host_version>\<platform>\<version>\usr\bin. This directory contains a number of command line tools that can help you package, sign, and deploy your app.

Creating the package

To create the package in development mode from the command line, type the following:

blackberry-nativepackager  -devMode  -package <path_to_package\package_name.bar> <bar-descriptor.xml> -debugToken <debug_Token_file.bar>

To create a standard package for the store from the command line, type the following:

blackberry-nativepackager -package  <path_to_package\package_name.bar> <bar-descriptor.xml>

For more information on packaging, see Packing and deploying apps.

Signing your app

To sign your app from the command line, type the following:

blackberry-signer -storepass <KeystorePassword> <path_to_package\package_name.bar>

For more information on signing your app, see Signing apps.

Deploying your app

To deploy your app from the command line, type the following:

blackberry-deploy -installApp -package <path_to_package\package_name.bar> -device <device_ip> -password <device_password>

For more information on deploying your app, see Packing and deploying apps.

If you want to uninstall your app from the command line, type the following:

blackberry-deploy -uninstallApp -package <path_to_package\package_name.bar> -device <device_ip> -password <device_password>

For more information on removing your app, see Removing an app.

Distributing your app

After you package and sign your app, you can to submit it to BlackBerry World for distribution. For more information on BlackBerry World, see the BlackBerry World Frequently Asked Questions.

Last modified: 2013-12-21

comments powered by Disqus