fix: Removed SHA from version name to fix fdroid builds

This commit is contained in:
Stefan Schüller 2021-02-05 15:55:01 +01:00
parent ee6767dff8
commit 9dc7d54689

View File

@ -73,7 +73,7 @@ fetch-semantic-version:
- export VERSION_CODE=$((${VERSION_CODE}+1)) && echo ${VERSION_CODE} - export VERSION_CODE=$((${VERSION_CODE}+1)) && echo ${VERSION_CODE}
- export VERSION_SHA=`echo ${CI_COMMIT_SHA:0:8}` && echo ${VERSION_SHA} - export VERSION_SHA=`echo ${CI_COMMIT_SHA:0:8}` && echo ${VERSION_SHA}
- export VERSION=`cat VERSION.txt` && echo ${VERSION} - export VERSION=`cat VERSION.txt` && echo ${VERSION}
- export VERSION_NAME=${VERSION}-${VERSION_SHA} && echo ${VERSION_NAME} - export VERSION_NAME=${VERSION} && echo ${VERSION_NAME}
- sed -i -e "s/versionCode .*/versionCode ${VERSION_CODE}/g" app/build.gradle - sed -i -e "s/versionCode .*/versionCode ${VERSION_CODE}/g" app/build.gradle
- sed -i -e "s/versionName .*/versionName \"${VERSION_NAME}\"/g" app/build.gradle - sed -i -e "s/versionName .*/versionName \"${VERSION_NAME}\"/g" app/build.gradle
- echo ${VERSION_CODE} > VERSION_CODE.txt - echo ${VERSION_CODE} > VERSION_CODE.txt