Skip to content

Instantly share code, notes, and snippets.

@apit
Created January 4, 2011 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apit/764514 to your computer and use it in GitHub Desktop.
Save apit/764514 to your computer and use it in GitHub Desktop.
build and install titanium's mobile project into connected device
#!/bin/bash
# run this from project's root
# adb must be in PATH
# http://builds.appcelerator.com.s3.amazonaws.com/index.html
SDK_VERSION='1.6.0'
# key signing, not used for now
KEY="mykey"
PASSWD="haha"
CWD=`dirname $0`
if [ "$TI"=="" ]; then
TI="/opt/titanium"
fi
PROJECT=`grep -Po '(?<=<name>)([^<]*)' $CWD/tiapp.xml`
APPID=`grep -Po '(?<=<id>)([^<]*)' $CWD/tiapp.xml`
SDK=$(dirname $(dirname `which adb`))
BUILDER="$TI/mobilesdk/linux/$SDK_VERSION/android/builder.py"
$BUILDER install $PROJECT $SDK $CWD $APPID $KEY $PASSWD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment