Commit 8d8d6434 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Allow to run the build on the device with 'run' argument

parent 363b97a5
......@@ -34,6 +34,9 @@ while [ $# -gt 0 ]; do
PASSWORD_KEYSTORE=$2
shift
;;
run)
RUN=1
;;
esac
shift
done
......@@ -153,3 +156,18 @@ if [ "$RELEASE" = 1 ]; then
else
./gradlew assembleVanillaDebug
fi
#######
# RUN #
#######
if [ "$RUN" = 1 ]; then
export PATH=${ANDROID_SDK}/platform-tools/:$PATH
adb wait-for-device
adb uninstall org.videolan.vlc
if [ "$RELEASE" = 1 ]; then
adb install -r vlc-android/build/outputs/apk/vlc-android-vanilla-release.apk
else
adb install -r vlc-android/build/outputs/apk/vlc-android-vanilla-debug.apk
fi
adb shell am start -n org.videolan.vlc/org.videolan.vlc.gui.MainActivity
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment