Update version and add rename script

This commit is contained in:
John Lyon-Smith
2018-04-14 05:21:15 -07:00
parent 9acc48f096
commit cac8a3868e
5 changed files with 20 additions and 6 deletions

8
mobile/android/rename-apk Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
OLD_APK=${SCRIPT_DIR}/app/build/outputs/apk/app-release.apk
VERSION=$(cat $SCRIPT_DIR/../../scratch/version.txt)
NEW_APK=$(dirname $OLD_APK)/deighton-ar-${VERSION}.apk
mv $OLD_APK $NEW_APK