Skip to content

Instantly share code, notes, and snippets.

@PrimaryFeather
Created May 22, 2013 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save PrimaryFeather/5629036 to your computer and use it in GitHub Desktop.
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.
#!/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