Created
May 22, 2013 16:43
-
-
Save PrimaryFeather/5629036 to your computer and use it in GitHub Desktop.
Simple shell script to deploy an app to a mobile device; depending on the file extension, either iOS or Android. Call the script with the application package as first argument; also be sure to update "air_sdk" to point to an AIR SDK of at least 3.5.
This file contains 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 | |
air_sdk="/path/to/air_sdk" | |
adb="$air_sdk/lib/android/bin/adb" | |
adt="$air_sdk/bin/adt" | |
if [ ${1: -4} == ".ipa" ] | |
then | |
"$adt" -installApp -platform ios -package $1 | |
else | |
"$adb" install -r $1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment