Skip to content

Instantly share code, notes, and snippets.

@itspriddle
Created June 10, 2011 13:37
Show Gist options
  • Save itspriddle/1018832 to your computer and use it in GitHub Desktop.
Save itspriddle/1018832 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "Building Titanium Mobile"
[[ ! -f ~/Code/Mobile/titanium_mobile ]] && mkdir -p ~/Code/Mobile/titanium_mobile
cd ~/Code/Mobile/titanium_mobile
git pull origin master
case "$1" in
iphone)
scons -Q iphone=1
;;
android)
scons -Q android=1
;;
*)
scons
;;
esac
unzip dist/mobilesdk-*-osx.zip -d ~/Library/Application\ Support/Titanium/
cd -
echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment