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.http://www.scirra.com/forum/forum_posts.asp?TID=61922&PID=381345&title=like-money-rim-is-practically-throwing-it-at-you#381345
The second post outlined downloading the BlackBerry 10 WebWorks SDK
code signing keys.http://www.scirra.com/forum/forum_posts.asp?TID=61922&PID=381364&title=like-money-rim-is-practically-throwing-it-at-you#381364
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 126.96.36.199
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
The command that we want to execute is:bbwp PATH_TO_PROJECT -g STOREPASS
is a path to the root folder of your project. For example:C:\c2projects\myProject
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:http://www.youtube.com/watch?v=cMUJyJCo1ds&feature=youtu.be
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 protected]
), 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.