build: android release commands
This commit is contained in:
parent
8321bbfe98
commit
f338cdc615
1 changed files with 2 additions and 0 deletions
|
@ -41,10 +41,12 @@ then
|
||||||
yes | mkdir -p android/app/src/main/jniLibs/${arch} && cp -f target/${platform}/${type}/libgrim.so android/app/src/main/jniLibs/${arch}
|
yes | mkdir -p android/app/src/main/jniLibs/${arch} && cp -f target/${platform}/${type}/libgrim.so android/app/src/main/jniLibs/${arch}
|
||||||
cd android
|
cd android
|
||||||
./gradlew clean
|
./gradlew clean
|
||||||
|
#./gradlew assembleRelease
|
||||||
./gradlew build
|
./gradlew build
|
||||||
# Install on several devices
|
# Install on several devices
|
||||||
for SERIAL in $(adb devices | grep -v List | cut -f 1);
|
for SERIAL in $(adb devices | grep -v List | cut -f 1);
|
||||||
do
|
do
|
||||||
|
#adb -s $SERIAL install app/build/outputs/apk/release/app-release.apk
|
||||||
adb -s $SERIAL install app/build/outputs/apk/debug/app-debug.apk
|
adb -s $SERIAL install app/build/outputs/apk/debug/app-debug.apk
|
||||||
sleep 1s
|
sleep 1s
|
||||||
adb -s $SERIAL shell am start -n mw.gri.android/.MainActivity;
|
adb -s $SERIAL shell am start -n mw.gri.android/.MainActivity;
|
||||||
|
|
Loading…
Reference in a new issue