Skip to content

Commit

Permalink
More GitHub actions work.
Browse files Browse the repository at this point in the history
  • Loading branch information
zond committed Mar 5, 2020
1 parent 1a1d8bb commit 9ab8c75
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tools/create_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ echo 'Will create release...'
pwd

APK_PATH="app/build/outputs/apk/release/app-release.apk"
APK_VERSION_LINE=`/opt/android/sdk/build-tools/27.0.3/aapt dump badging ${APK_PATH}`
APK_VERSION_CODE=`echo ${APK_VERSION_LINE} | sed -e "s/.*versionCode='\([^']\+\)'.*/\1/"`
APK_VERSION_NAME=`echo ${APK_VERSION_LINE} | sed -e "s/.*versionName='\([^']\+\)'.*/\1/"`
AAPT_PATH="(find "${ANDROID_HOME}" -name aapt | head)"
echo ${AAPT_PATH}
APK_VERSION_LINE=$(${AAPT_PATH} dump badging ${APK_PATH})
APK_VERSION_CODE=$(echo ${APK_VERSION_LINE} | sed -e "s/.*versionCode='\([^']\+\)'.*/\1/")
APK_VERSION_NAME=$(echo ${APK_VERSION_LINE} | sed -e "s/.*versionName='\([^']\+\)'.*/\1/")

echo ${APK_VERSION_LINE}
echo ${APK_VERSION_CODE}
Expand Down

0 comments on commit 9ab8c75

Please sign in to comment.