Skip to content

Instantly share code, notes, and snippets.

@groupsky
Created January 10, 2013 12:13
Show Gist options
  • Save groupsky/4501582 to your computer and use it in GitHub Desktop.
Save groupsky/4501582 to your computer and use it in GitHub Desktop.
deploy only release apps to all connected devices
for APK in `find $WORKSPACE -type f -name '*-release*.apk'`; do
if [[ "$APK" != *unaligned* ]]; then
if [[ "$APK" != *unsigned* ]]; then
for DEVICE in `adb devices | tail -n+2 | cut -f1`; do
echo "installing $APK on $i"
adb -s $DEVICE install -rs $APK
done
fi
fi
done
echo "done deploying"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment