Pages

Showing posts with label cordova. Show all posts
Showing posts with label cordova. Show all posts

Thursday, October 15, 2015

Install a bar file to your blackberry10 device in debug mode using node / webworks

How to install a bar file (e.g. blackberry application package) to your blackberry10 device:

I'm assuming you're using node and already did: npm -g install webworks, also you already have a blackberry id. To make this work you have to make a debug token (filename: bbidtoken.csk) request via the website.

To make this work you need two files: author.p12, bbidtoken.csk

Both should be copied to $HOME/.rim where webworks can find it by default on Linux;
~/Library/Research\ In\ Motion/
on a mac.
author.p12 can be generated using bbidtoken.csk with the following commands:
blackberry-keytool -genkeypair -storepass [The passphrase you used to request the debug token] -dname "CN=[Company name]"
blackberry-deploy -installDebugToken bbidtoken.csk -device [ipv4 address] --password [The passphrase to access the device internals]

Finally to install your app (assumingly made with cordova/webworks):
webworks --verbose run --devicepass [The passphrase to access the device internals] --keystorepass [The passphrase you used to request the debug token]