Skip to content

Native Android client for Spotify, built with Jetpack Compose

The release job keeps both APKs: each one leaves app/build/outputs/apk/release, which the next assembleRelease empties, for app/build/release-apks, from where both are uploaded (the first build's arm64-v8a APK was lost otherwise) [skip ci]

kota-zo19f482938092
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
index b3f6c920..5bfd4905 100644
--- a/.github/workflows/android.yml
+++ b/.github/workflows/android.yml
@@ -113,14 +113,16 @@ jobs:
# One APK per ABI, same versionCode (a phone installs only its own; the app's update check
# picks it, UpdateChecker.apkAsset): myspoti-beta-2.2.1-beta.1-arm64-v8a.apk,
# myspoti-stable-2.2.1-armeabi-v7a.apk... Obtainium filters on the channel and the ABI.
+ # Each APK leaves apk/release/, which the next assembleRelease empties.
CHANNEL=stable; case "$VERSION" in *-*) CHANNEL=beta ;; esac
+ mkdir -p app/build/release-apks
for ABI in arm64-v8a armeabi-v7a; do
./gradlew assembleRelease \
-Pabis="$ABI" \
-PappVersionName="$VERSION" \
-PappVersionCode="$((1000 + GITHUB_RUN_NUMBER))" \
-PupdateRepo="$GITHUB_REPOSITORY"
- mv app/build/outputs/apk/release/app-release.apk "app/build/outputs/apk/release/myspoti-$CHANNEL-$VERSION-$ABI.apk"
+ mv app/build/outputs/apk/release/app-release.apk "app/build/release-apks/myspoti-$CHANNEL-$VERSION-$ABI.apk"
done
# This version's section of CHANGELOG.md becomes the release description.
@@ -140,7 +142,7 @@ jobs:
- uses: softprops/action-gh-release@v3
with:
- files: base/app/build/outputs/apk/release/myspoti-*.apk
+ files: base/app/build/release-apks/myspoti-*.apk
body_path: base/release-notes.md
generate_release_notes: true
# "v2.0.0-beta.1": a pre-release, offered only to beta builds.