Last active
August 29, 2015 14:00
-
-
Save kopiro/11007271 to your computer and use it in GitHub Desktop.
Titanium CLI Aliases
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
# Titanium aliases | |
alias ti-is-dev="if [ -e devtiapp.xml ]; then cp tiapp.xml tiapp.xml.copy; rm tiapp.xml; ln -svf devtiapp.xml tiapp.xml; fi" | |
alias ti-is-prod="if [ -e prodtiapp.xml ]; then cp tiapp.xml tiapp.xml.copy; rm tiapp.xml; ln -svf prodtiapp.xml tiapp.xml; fi" | |
# iOS | |
alias ti-ios="ti-is-dev && ti build -p ios --sim-64bit -I 7.1" | |
alias ti-ios-device="ti-is-dev && ti build -p ios -T device -I 7.1 --device-id all" | |
alias ti-ios-test="ti-is-dev && ti clean && ti build -p ios -T dist-adhoc -I 7.1" | |
alias ti-ios-install="ideviceinstaller --install dist/*.ipa" | |
# Android | |
alias ti-android="ti-is-dev && ti build -p android" | |
alias ti-android-device="ti-is-dev && ti build -p android -T device --device-id all" | |
alias ti-android-test="ti-is-dev && ti clean && ti build -p android -T dist-playstore" | |
alias ti-android-install="adb install dist/*.apk" | |
# Generic | |
alias git-release="git add -A && git commit -am 'Release of $(date)' && git push" | |
alias ti-assets="rm -rf app/assets/android; rm -rf app/assets/images; ticons assets; ticons icons iTunesConnect.png; ticons splashes -p android;" | |
alias ti-testflight="/Applications/TestFlight.app/Contents/MacOS/TestFlight dist/*.ipa" | |
alias ti-ios-release="ti-assets && ti-ios-test && git-release && ti-testflight" | |
alias ti-android-release="ti-assets && ti-android-test && git-release" | |
alias ti-ios-store="ti-assets && ti-is-prod && ti clean && ti build -p ios -T dist-appstore -I 7.1 && git-release" | |
alias ti-android-store="ti-assets && ti-is-prod && ti clean && ti build -p android -T dist-playstore && git-release" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment