This is the third post regarding converting a Construct 2 application to BlackBerry 10.
The first post outlined adding a config.xml document to your project and requesting code signing keys.
The second post outlined downloading the BlackBerry 10 WebWorks SDK and registering code signing keys.
This third post will detail packaging your HTML5 project into a BlackBerry 10 application; also known as a BAR.
Similar to how we executed a command to register code signing keys, we'll execute another command to package our application. This time, we need to execute our command from this folder:
C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 188.8.131.52
We can use the same trick in Windows of navigating to that folder in Windows Explorer, then holding Shift and pressing Right-Click to get the Open command window here option.
The command that we want to execute is:
bbwp PATH_TO_PROJECT -g STOREPASS
Where PATH_TO_PROJECT is a path to the root folder of your project. For example:
And STOREPASS is your code signing password that you set when registering your keys.
The resulting log should look similar to this:
[BUILD] Populating application source
[BUILD] Parsing config.xml
[BUILD] Generating output files
[INFO] Info: Package created: C:\wamp\www\simulator\myProject.bar
[INFO] Info: Package created: C:\wamp\www\device\myProject.bar
[INFO] Info: Bar signed.
[BUILD] BAR packaging complete
The bold output indicates the BAR file in the device folder that has been packaged and signed, and is now a BlackBerry 10 application. This is the BAR file that you would then submit to BlackBerry App World.
For submitting to BlackBerry App World, there is a video tutorial here:
So all of that being said, it is a fairly simplified look and some developers may run into issues. Again, if you do, do not hesitate to ask here, or directly (email@example.com), or during the Port-a-Thon event (we'll have a number of people online helping at all times.) We'll do our best to help you get your application submitted and ready to go.