From ed9b9646e73b5b8a8091ff9688588baf19d82622 Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 7 Feb 2014 07:34:09 -0800 Subject: [PATCH] launch app after installing --- xwords4/android/scripts/find-and-ant.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/xwords4/android/scripts/find-and-ant.sh b/xwords4/android/scripts/find-and-ant.sh index d8a84b44f..2f054aae6 100755 --- a/xwords4/android/scripts/find-and-ant.sh +++ b/xwords4/android/scripts/find-and-ant.sh @@ -30,4 +30,21 @@ while [ ! -e $MANIFEST ]; do cd .. done +DIRNAME=$(basename $(pwd)) +case $DIRNAME in + XWords4-bt) + PKG=xw4bt + ;; + XWords4) + PKG=xw4 + ;; + *) + usage "running in unexpected directory $DIRNAME" + ;; +esac + ant $CMDS + +if [ "$CMDS" != "${CMDS%%install}" ]; then + adb shell am start -n org.eehouse.android.${PKG}/org.eehouse.android.${PKG}.GamesList +fi