Skip to content
Snippets Groups Projects
Commit 9c4734d8 authored by Andri Joos's avatar Andri Joos :blush:
Browse files

add version variable

parent 8fa1009b
No related branches found
No related tags found
1 merge request!12Resolve "Publish to fdroid repository"
stages:
- build
variables:
APPLICATION_VERSION: "1.0.0"
android_build:
stage: build
image:
......@@ -35,8 +38,8 @@ apks:
- android_build
artifacts:
paths: # individual apks to reduce artifact size
- car-app_arm64_v8a_xhdpi.apk
- car-app_x86_64_xhdpi.apk
- car-app_${APPLICATION_VERSION}_arm64_v8a_xhdpi.apk
- car-app_${APPLICATION_VERSION}_x86_64_xhdpi.apk
expire_in: 1 day
script:
- apk add perl-file-rename --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
......@@ -44,4 +47,4 @@ apks:
- java -jar /app/bundletool.jar build-apks --bundle=car_app.aab --output=car_app.apks --ks=keystore.jks --ks-pass=pass:$SIGNING_STORE_PW --ks-key-alias=$SIGNING_KEY_ALIAS --key-pass=pass:$SIGNING_KEY_PW
- unzip -q car_app.apks -d car_app_apks
- mv car_app_apks/standalones/*.apk .
- file-rename -v 's/standalone-(\w+).*$/car-app_$1.apk/' *.apk
- file-rename -v "s/standalone-(\w+).*$/car-app_${APPLICATION_VERSION}_\$1.apk/" *.apk
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