Skip to content

Instantly share code, notes, and snippets.

@donthorp
Forked from davglass/gist:247623
Created December 2, 2009 23:56
Show Gist options
  • Save donthorp/247753 to your computer and use it in GitHub Desktop.
Save donthorp/247753 to your computer and use it in GitHub Desktop.
dev-build for titanium mobile
#!/bin/bash
#
# This file will help you build Titanium Mobile on Unix from source
#
# Follow the HOWTO's here:
# http://www.codestrong.com/timobile/howto/
#
# Once you have your dependencies working,
# Put this file in your path somewhere then cd into the titanium_mobile directory
# then exec: builti
#
#
if [ ! -f "./build/titanium_version.py" ]; then
echo "You must be at the root of the titanium_mobile project to build it."
exit
fi
file=(`cat ./build/titanium_version.py`)
version=${file[2]}
version=${version//\'/}
vername=$version-dev
wait
scons PRODUCT_VERSION=$vername
wait
cd dist
wait
unzip mobilesdk-$vername-osx.zip
wait
rm -rRf /Library/Application\ Support/Titanium/mobilesdk/osx/$vername
wait
cp -R mobilesdk/osx/$vername /Library/Application\ Support/Titanium/mobilesdk/osx/$vername
wait
rm -rRf mobilesdk
wait
cd ../
wait
echo "Titanium Mobile Build ($vername) Finished"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment