Packaging a BlackBerry (WebWorks) PhoneGap/Cordova

2019-07-30 00:53发布

I'm working with PhoneGap/Cordova and the only options I see is to build to the emulator or to build for debuging to the device.

I want to package the app for further distribution and publishing. Any thoughts?

Thanks!!

3条回答
手持菜刀,她持情操
2楼-- · 2019-07-30 01:20

First build with

ant blackberry build

Then, you need to get and install signing keys:

https://developer.blackberry.com/html5/documentation/signing_setup_smartphone_apps_1920010_11.html

Then finally, once you are able to code sign you need to use bbwp to sign and package the zip file generated by the build (the zip is in the build directory of the PhoneGap folder). So navigate to your sdk/bin directory and run:

bbwp C:\myapp\HelloWorld.zip -g mypassword -o C:\myapp\signed

This generates two folders in C:\myapp\signed which contain the signed files. You will need different files depending on the distribution method and a summary is here:

https://developer.blackberry.com/html5/documentation/distributing_your_app_1866990_11.html

查看更多
Anthone
3楼-- · 2019-07-30 01:28

cd into the top level directory of your project (the one that contains the www/ folder). Then call this command:

ant TARGET build

Where TARGET can be blackberry, playbook, or qnx (beta right now). This will create a build/ folder which should contain the needed files for further packaging.

查看更多
你好瞎i
4楼-- · 2019-07-30 01:31

https://developer.blackberry.com/html5/documentation/signing_landing_page.html

https://developer.blackberry.com/html5/documentation/distributing_your_app_1866990_11.html

You need to get a signing key from RIM in order to publish your apps to the Blackberry App World. My previous experiences was packaging the app with signing key and allow others to install the app with BlackBerry Desktop Manager using the .alx file generated.

查看更多
登录 后发表回答