Skip to content

Commit

Permalink
change apk names to aniyomi
Browse files Browse the repository at this point in the history
  • Loading branch information
jmir1 committed Jun 8, 2021
1 parent 0d01e82 commit dd82a02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,20 @@ 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
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'jmir1/tachiyomi-mi'
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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit dd82a02

Please sign in to comment.