Friday, December 5, 2014

PEBBLE Watch - Linux command line to build and deploy


Update file bash_profile, only the first time

echo 'export PATH=~/pebble-dev/PebbleSDK-2.7/bin:$PATH' >> ~/.bash_profile

Execute this line to add the pebble command into the PATH

. ~/.bash_profile

Pebble utility commands

pebble --version
pebble new-project
pebble build
pebble install --phone 192.168.1.5 --logs

How to create bash file to automate build and deploy. Create file go.sh with the following content:

#!/bin/bash
echo Setting Pebble Development Environment
pebble build
pebble install --phone 192.168.1.5 --logs

Execute the following on the file

chmod u+x go.sh

Execute go to compile and deploy

./go.sh


http://developer.getpebble.com/sdk/migration-guide/

No comments:

Post a Comment