diff options
| author | 2023-03-03 22:38:56 -0700 | |
|---|---|---|
| committer | 2023-06-03 00:05:33 -0700 | |
| commit | 1d0329a065f627de17c97ff5224dfc90504b83f8 (patch) | |
| tree | 78028f74a5302ead3364f5c1d9a15a1a83eadc10 /.ci/scripts/android/upload.sh | |
| parent | android: build.gradle: Cleanup build types. (diff) | |
| download | yuzu-1d0329a065f627de17c97ff5224dfc90504b83f8.tar.gz yuzu-1d0329a065f627de17c97ff5224dfc90504b83f8.tar.xz yuzu-1d0329a065f627de17c97ff5224dfc90504b83f8.zip | |
CI: add Android build systems
Diffstat (limited to '')
| -rwxr-xr-x | .ci/scripts/android/upload.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.ci/scripts/android/upload.sh b/.ci/scripts/android/upload.sh new file mode 100755 index 000000000..269684178 --- /dev/null +++ b/.ci/scripts/android/upload.sh | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | #!/bin/bash -ex | ||
| 2 | |||
| 3 | . ./.ci/scripts/common/pre-upload.sh | ||
| 4 | |||
| 5 | REV_NAME="yuzu-${GITDATE}-${GITREV}" | ||
| 6 | |||
| 7 | BUILD_FLAVOR=mainline | ||
| 8 | |||
| 9 | cp src/android/app/build/outputs/apk/"${BUILD_FLAVOR}/release/app-${BUILD_FLAVOR}-release.apk" \ | ||
| 10 | "artifacts/${REV_NAME}.apk" | ||
| 11 | cp src/android/app/build/outputs/bundle/"${BUILD_FLAVOR}Release"/"app-${BUILD_FLAVOR}-release.aab" \ | ||
| 12 | "artifacts/${REV_NAME}.aab" | ||
| 13 | |||
| 14 | if [ -n "${ANDROID_KEYSTORE_B64}" ] | ||
| 15 | then | ||
| 16 | echo "Signing apk..." | ||
| 17 | base64 --decode <<< "${ANDROID_KEYSTORE_B64}" > ks.jks | ||
| 18 | |||
| 19 | apksigner sign --ks ks.jks \ | ||
| 20 | --ks-key-alias "${ANDROID_KEY_ALIAS}" \ | ||
| 21 | --ks-pass env:ANDROID_KEYSTORE_PASS "artifacts/${REV_NAME}.apk" | ||
| 22 | else | ||
| 23 | echo "No keystore specified, not signing the APK files." | ||
| 24 | fi | ||