Created
March 16, 2011 23:05
-
-
Save mwbrooks/873515 to your computer and use it in GitHub Desktop.
BlackBerry Playbook Makefile to build and deploy.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Package and Deploy to the Playbook | |
# | |
# Getting Started: | |
# | |
# 1. Update ADDRESS with your Playbook IP Address | |
# 2. Update PASSWORD with your Playbook password | |
# 3. Update SDK_DIR with the path to the Playbook WebWorks SDK | |
# | |
# Usage: | |
# | |
# $ make | |
# | |
# Assumption: | |
# | |
# Directory structure is as follows: | |
# | |
# Makefile ..... this file | |
# www/ ......... WebWorks app (HTML / CSS / JS / etc) | |
# | |
.SILENT: build clean | |
ADDRESS = 172.16.19.128 | |
PASSWORD = "nopassword" | |
SDK_DIR = ~/Development/lib/blackberry-playbook/bbwp | |
# Change for Windows environments (.exe) | |
BBWP_BIN = ${SDK_DIR}/bbwp | |
DEPLOY_BIN = ${SDK_DIR}/blackberry-tablet-sdk/bin/blackberry-deploy | |
BUILD_DIR = build | |
ZIP_FILE = app.zip | |
BAR_FILE = app.bar | |
build: clean | |
mkdir -p ${BUILD_DIR} | |
cd www; zip -r ../${BUILD_DIR}/${ZIP_FILE} . | |
${BBWP_BIN} ${BUILD_DIR}/${ZIP_FILE} | |
${DEPLOY_BIN} -installApp -password ${PASSWORD} -device ${ADDRESS} -package ${BUILD_DIR}/bin/${BAR_FILE} | |
clean: | |
if test -d ${BUILD_DIR}; then \ | |
rm -rf ${BUILD_DIR}; \ | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment