From dd82a0252778911e8ac837df3736bd14362c5753 Mon Sep 17 00:00:00 2001 From: jmir1 Date: Tue, 8 Jun 2021 12:37:15 +0200 Subject: [PATCH] change apk names to aniyomi --- .github/workflows/build.yml | 8 ++++---- .../eu/kanade/tachiyomi/data/updater/GithubRelease.kt | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 46ce5fa5ce..b4dec000a8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -76,8 +76,8 @@ jobs: - name: Clean up build artifacts if: startsWith(github.ref, 'refs/tags/') && github.repository == 'jmir1/tachiyomi-mi' run: | - cp ${{ env.SIGNED_RELEASE_FILE }} tachiyomi-${{ env.VERSION_TAG }}.apk - md5=`md5sum tachiyomi-${{ env.VERSION_TAG }}.apk | awk '{ print $1 }'` + cp ${{ env.SIGNED_RELEASE_FILE }} aniyomi-${{ env.VERSION_TAG }}.apk + md5=`md5sum aniyomi-${{ env.VERSION_TAG }}.apk | awk '{ print $1 }'` echo "APK_MD5=$md5" >> $GITHUB_ENV - name: Create Release @@ -85,11 +85,11 @@ jobs: uses: softprops/action-gh-release@v1 with: tag_name: ${{ env.VERSION_TAG }} - name: Tachiyomi ${{ env.VERSION_TAG }} + name: Aniyomi ${{ env.VERSION_TAG }} body: | MD5: ${{ env.APK_MD5 }} files: | - tachiyomi-${{ env.VERSION_TAG }}.apk + aniyomi-${{ env.VERSION_TAG }}.apk draft: true prerelease: false env: diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/updater/GithubRelease.kt b/app/src/main/java/eu/kanade/tachiyomi/data/updater/GithubRelease.kt index f4731b62a6..22b3bba804 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/updater/GithubRelease.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/updater/GithubRelease.kt @@ -24,14 +24,15 @@ class GithubRelease( * @return download link of latest release. */ fun getDownloadLink(): String { - val apkVariant = when (Build.SUPPORTED_ABIS[0]) { + /*val apkVariant = when (Build.SUPPORTED_ABIS[0]) { "arm64-v8a" -> "-arm64-v8a" "armeabi-v7a" -> "-armeabi-v7a" "x86", "x86_64" -> "-x86" else -> "" - } + }*/ + val apkVariant = "" - return assets.find { it.downloadLink.contains("tachiyomi-mi$apkVariant-") }?.downloadLink + return assets.find { it.downloadLink.contains("aniyomi$apkVariant-") }?.downloadLink ?: assets[0].downloadLink }