Building BlackBerry PlayBook Apps from the command line
Note: BlackBerry provides has a plugin for Flash Builder 4 that makes this whole process much easier.
I assume in this article that you have downloaded the BlackBerry Tablet OS SDK and have it installed on your computer. I will be using the default install path of c:\Program Files\Adobe\Adobe Flash Builder 4\sdks\blackberry-tablet-sdk-0.9.0
(Windows) and /Application/Adobe Flash Builder 4/sdks/blackberry-tablet-sdk-0.9.0
(Mac) in this article but just swap the path to the sdk with your local computer specific location.
Its really pretty simple. You use mxmlc +configname=air
or amxmlc
(which does the confignmame=air for you). And compile your ActionScript class to a SWF application. Then all you need to do is package and deploy the application to the BlackBerry simulator.
Here is a image of the commands on the shell that I used to build, package, and deploy a AIR based PlayBook application.
There is a entry in BlackBerry’s knowledge base that also talks about compiling from the command line, as well as using fdb for debugging from the command line.