From 70ea2f497a6a9f89fe12f4c5dac5fde74c0f688a Mon Sep 17 00:00:00 2001 From: Syuugo Date: Sat, 11 May 2024 20:24:13 +0900 Subject: [PATCH] Build the App Bundle too --- .github/workflows/build.yml | 11 ++++++++--- app/proguard-rules.pro | 5 ++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 70cb758..1d27a95 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,14 +31,19 @@ jobs: - name: Build with Gradle run: | - ./gradlew assembleRelease --stacktrace + ./gradlew assembleRelease bundleRelease --stacktrace { echo "version=v$(grep versionName version.properties | sed 's/^[^=]*=//')" echo "commit=$(echo ${{ github.sha }} | cut -c-7)" } >> $GITHUB_ENV - - name: Upload APK + - name: Copy built artifacts + run: | + cp -v app/build/outputs/apk/release/app-release.apk Dhizuku-${{ env.version }}.apk + cp -v app/build/outputs/bundle/release/app-release.aab Dhizuku-${{ env.version }}.aab + + - name: Upload uses: actions/upload-artifact@v4 with: name: Dhizuku(${{ env.version }}@${{ env.commit }}) - path: app/build/outputs/apk/release/app-release.apk + path: Dhizuku-${{ env.version }}.a* diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index abc0cb5..8ba38a0 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -37,4 +37,7 @@ -keep class rikka.shizuku.ShizukuProvider --dontwarn ** \ No newline at end of file +-dontwarn ** + +-keepattributes LineNumberTable,SourceFile +-renamesourcefileattribute SourceFile