Blackberry-Py bootstrap
This repository allows you to quickly bootstrap a Blackberry-Py application and start writing BB10 apps with Python.
Get it running
- Clone this repository with the submodule(s)
git clone --recurse-submodules https://github.com/BerryTrucks/blackberry-py-bootstrap
- Install Python 3.2.2. The easiest way is through pyenv
- Generate a debug token (see how below)
- Run
make
to compile a bar file, or - Enable Developer mode on your BB10 device, adjust
signing/bbpass
with your real IP address and run
make deploy
Generating a debug token
- Use this form to obtain your
bbidtoken.csk
file: https://developer.blackberry.com/codesigning/ - Copy
bbidtoken.csk
tosigning/bbidtoken.csk
- In
signing/bbpass
, fill in:CNNAME
: the Common Name for your signing cert (usually your name)KEYSTOREPASS
: CSK password you entered in step 1 signupBBPIN
: target device's PINBBPASS
: target device's password
- Run
make
insigning/Makefile
to request and deploy the token to your device.
Important: any symbols need to be escaped according to bash / Makefile rules e.g. backslashes before symbols \!
and double dollar signs \$$
.
See also
- https://github.com/krruzic/Reader-YC - full HackerNews reader app built with Blackberry Py
- The official Blackberry-Py repo with code samples - https://bitbucket.org/microcode/blackberry-py/src/default/
Thanks
- Peter Hansen for Blackberry-Py
- Xitij Ritesh Patel for Blackberry-Py-bootstrap
- Term48 contributors for scripting the debug token generation