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

make apk name configurable

parent 91733846
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ variables: ...@@ -19,6 +19,7 @@ variables:
BUNDLETOOL_IMAGE: andrijoos/bundletool BUNDLETOOL_IMAGE: andrijoos/bundletool
ANDROID_PLATFORMS: android-arm,android-arm64,android-x64 ANDROID_PLATFORMS: android-arm,android-arm64,android-x64
AAB_NAME: ${APP_NAME}_${APPLICATION_VERSION}.aab AAB_NAME: ${APP_NAME}_${APPLICATION_VERSION}.aab
APK_NAME: ${APP_NAME}_${APPLICATION_VERSION}.apk
.build_android: .build_android:
stage: build stage: build
...@@ -51,10 +52,10 @@ variables: ...@@ -51,10 +52,10 @@ variables:
- amd64 - amd64
artifacts: artifacts:
paths: paths:
- ${APP_NAME}_${APPLICATION_VERSION}.apk - ${APK_NAME}
expire_in: 1 day expire_in: 1 day
script: script:
- echo $SIGNING_KEYSTORE | base64 -d > keystore.jks - echo $SIGNING_KEYSTORE | base64 -d > keystore.jks
- bundletool build-apks --bundle=${AAB_NAME} --output=apks.apks --mode=universal --ks=keystore.jks --ks-pass=pass:$SIGNING_STORE_PW --ks-key-alias=$SIGNING_KEY_ALIAS --key-pass=pass:$SIGNING_KEY_PW - bundletool build-apks --bundle=${AAB_NAME} --output=apks.apks --mode=universal --ks=keystore.jks --ks-pass=pass:$SIGNING_STORE_PW --ks-key-alias=$SIGNING_KEY_ALIAS --key-pass=pass:$SIGNING_KEY_PW
- unzip -q apks.apks -d apks - unzip -q apks.apks -d apks
- mv apks/universal.apk ./${APP_NAME}_${APPLICATION_VERSION}.apk - mv apks/universal.apk ./${APK_NAME}
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