Merge branch 'main' into ui-enhancements-and-refactors

This commit is contained in:
M M Arif
2022-04-04 20:12:47 +02:00
2 changed files with 3 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ on_setup:
- ./scripts/add-commit-status.sh
build:
image: nextcloudci/android8:android-61
image: alvrme/alpine-android:android-31-jdk11
stage: build
only:
- main
@@ -31,7 +31,7 @@ build:
expire_in: 15 minutes
sign:
image: nextcloudci/android8:android-61
image: alvrme/alpine-android:android-31-jdk11
stage: sign
only:
- main

View File

@@ -9,11 +9,7 @@
[ -z "${KS_FILE}" ] && { echo "Filename of keystore is missing (KS_FILE)"; exit 1; }
[ -z "${OUTPUT}" ] && { echo "Missing filename of signed output (OUTPUT)"; exit 1; }
# Update the docker container. curl is an outdated version which has to be updated.
apt update
apt upgrade curl -y
KEYFILE=$(mktemp)
curl -X GET "${INSTANCE}/api/v1/repos/${KS_REPO}/contents/${KS_FILE}?token=${BOT_TOKEN}" -H "accept: application/json" | sed 's|"content":"|#|g' | cut -d '#' -f 2 | cut -d '"' -f 1 | base64 -d > ${KEYFILE}
/opt/android-sdk-linux/build-tools/*/apksigner sign -v --ks-pass pass:$KS_PASS --key-pass pass:$KEY_PASS --ks-key-alias GitNexBot --ks ${KEYFILE} --out signed.apk $(find . -name "*release*.apk")
apksigner sign -v --ks-pass pass:$KS_PASS --key-pass pass:$KEY_PASS --ks-key-alias GitNexBot --ks ${KEYFILE} --out signed.apk $(find . -name "*release*.apk")