-
-
Save donthorp/247753 to your computer and use it in GitHub Desktop.
dev-build for titanium mobile
This file contains hidden or 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
#!/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