mirror of
https://github.com/mihonapp/mihon-preview.git
synced 2024-12-27 11:28:21 +01:00
Compute sha256 hashes instead of md5
This commit is contained in:
parent
7902a1ea37
commit
666d68d830
32
.github/workflows/build_app.yml
vendored
32
.github/workflows/build_app.yml
vendored
@ -81,20 +81,20 @@ jobs:
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
cp app/build/outputs/apk/standard/debug/app-standard-universal-debug.apk tachiyomi-r${{ env.COMMIT_COUNT }}.apk
|
cp app/build/outputs/apk/standard/debug/app-standard-universal-debug.apk tachiyomi-r${{ env.COMMIT_COUNT }}.apk
|
||||||
md5=`md5sum tachiyomi-r${{ env.COMMIT_COUNT }}.apk | awk '{ print $1 }'`
|
sha=`sha256sum tachiyomi-r${{ env.COMMIT_COUNT }}.apk | awk '{ print $1 }'`
|
||||||
echo "APK_UNIVERSAL_MD5=$md5" >> $GITHUB_ENV
|
echo "APK_UNIVERSAL_SHA=$sha" >> $GITHUB_ENV
|
||||||
|
|
||||||
cp app/build/outputs/apk/standard/debug/app-standard-arm64-v8a-debug.apk tachiyomi-arm64-v8a-r${{ env.COMMIT_COUNT }}.apk
|
cp app/build/outputs/apk/standard/debug/app-standard-arm64-v8a-debug.apk tachiyomi-arm64-v8a-r${{ env.COMMIT_COUNT }}.apk
|
||||||
md5=`md5sum tachiyomi-arm64-v8a-r${{ env.COMMIT_COUNT }}.apk | awk '{ print $1 }'`
|
sha=`sha256sum tachiyomi-arm64-v8a-r${{ env.COMMIT_COUNT }}.apk | awk '{ print $1 }'`
|
||||||
echo "APK_ARM64_V8A_MD5=$md5" >> $GITHUB_ENV
|
echo "APK_ARM64_V8A_SHA=$sha" >> $GITHUB_ENV
|
||||||
|
|
||||||
cp app/build/outputs/apk/standard/debug/app-standard-armeabi-v7a-debug.apk tachiyomi-armeabi-v7a-r${{ env.COMMIT_COUNT }}.apk
|
cp app/build/outputs/apk/standard/debug/app-standard-armeabi-v7a-debug.apk tachiyomi-armeabi-v7a-r${{ env.COMMIT_COUNT }}.apk
|
||||||
md5=`md5sum tachiyomi-armeabi-v7a-r${{ env.COMMIT_COUNT }}.apk | awk '{ print $1 }'`
|
sha=`sha256sum tachiyomi-armeabi-v7a-r${{ env.COMMIT_COUNT }}.apk | awk '{ print $1 }'`
|
||||||
echo "APK_ARMEABI_V7A_MD5=$md5" >> $GITHUB_ENV
|
echo "APK_ARMEABI_V7A_SHA=$sha" >> $GITHUB_ENV
|
||||||
|
|
||||||
cp app/build/outputs/apk/standard/debug/app-standard-x86-debug.apk tachiyomi-x86-r${{ env.COMMIT_COUNT }}.apk
|
cp app/build/outputs/apk/standard/debug/app-standard-x86-debug.apk tachiyomi-x86-r${{ env.COMMIT_COUNT }}.apk
|
||||||
md5=`md5sum tachiyomi-x86-r${{ env.COMMIT_COUNT }}.apk | awk '{ print $1 }'`
|
sha=`sha256sum tachiyomi-x86-r${{ env.COMMIT_COUNT }}.apk | awk '{ print $1 }'`
|
||||||
echo "APK_X86_MD5=$md5" >> $GITHUB_ENV
|
echo "APK_X86_SHA=$sha" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
@ -102,18 +102,22 @@ jobs:
|
|||||||
tag_name: r${{ env.COMMIT_COUNT }}
|
tag_name: r${{ env.COMMIT_COUNT }}
|
||||||
name: Tachiyomi Preview r${{ env.COMMIT_COUNT }}
|
name: Tachiyomi Preview r${{ env.COMMIT_COUNT }}
|
||||||
body: |
|
body: |
|
||||||
Commits: https://github.com/tachiyomiorg/tachiyomi/compare/${{ env.PREV_RELEASE_SHA }}...${{ env.CURRENT_SHA }}
|
### Commits
|
||||||
|
|
||||||
---
|
https://github.com/tachiyomiorg/tachiyomi/compare/${{ env.PREV_RELEASE_SHA }}...${{ env.CURRENT_SHA }}
|
||||||
|
|
||||||
${{ env.COMMIT_LOGS }}
|
${{ env.COMMIT_LOGS }}
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
MD5 (universal): ${{ env.APK_UNIVERSAL_MD5 }}
|
### Hashes
|
||||||
MD5 (arm64-v8a): ${{ env.APK_ARM64_V8A_MD5 }}
|
|
||||||
MD5 (armeabi-v7a): ${{ env.APK_ARMEABI_V7A_MD5 }}
|
| Variant | SHA256 |
|
||||||
MD5 (x86): ${{ env.APK_X86_MD5 }}
|
| ------- | ------ |
|
||||||
|
| Universal | ${{ env.APK_UNIVERSAL_SHA }}
|
||||||
|
| arm64-v8a | ${{ env.APK_ARM64_V8A_SHA }}
|
||||||
|
| armeabi-v7a | ${{ env.APK_ARMEABI_V7A_SHA }}
|
||||||
|
| x86 | ${{ env.APK_X86_SHA }} |
|
||||||
files: |
|
files: |
|
||||||
tachiyomi-r${{ env.COMMIT_COUNT }}.apk
|
tachiyomi-r${{ env.COMMIT_COUNT }}.apk
|
||||||
tachiyomi-arm64-v8a-r${{ env.COMMIT_COUNT }}.apk
|
tachiyomi-arm64-v8a-r${{ env.COMMIT_COUNT }}.apk
|
||||||
|
Loading…
Reference in New Issue
Block a user