From f6b00a336231a8ee2ea1d2ffa9a0f3c15f3a019d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E9=9B=A8=20=E6=98=9F=E6=B2=B3?= Date: Sat, 23 Nov 2024 21:21:02 +0800 Subject: [PATCH] Add hash value verification --- .github/workflows/Create Release.yml | 15 ++++++++++++++- changelog.md | 19 ++++++------------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/.github/workflows/Create Release.yml b/.github/workflows/Create Release.yml index 196287b..81f376d 100644 --- a/.github/workflows/Create Release.yml +++ b/.github/workflows/Create Release.yml @@ -61,7 +61,10 @@ jobs: updateJson=https://github.moeyy.xyz/https://github.com/TimeBreeze/Tritium/blob/main/Tritium_fiage.json ' > ./magisk_fiage/module.prop - + name: Validate File Hash with Output File + + + - name: Zip Module run: | @@ -76,6 +79,14 @@ jobs: zip -r $GITHUB_WORKSPACE/${CONFIG_NAME}_fiage_${VERSION}.zip ./* cd ../../. + + - name: Validate File Hash with Output File + run: | + sha256sum $GITHUB_WORKSPACE/${ZIP_FILENAME}_suni_${VERSION}.zip > $GITHUB_WORKSPACE/${ZIP_FILENAME}_suni_${VERSION}.hash + sha256sum $GITHUB_WORKSPACE/${ZIP_FILENAME}_fiage_${VERSION}.zip > $GITHUB_WORKSPACE/${ZIP_FILENAME}_fiage_${VERSION}.hash + cat $GITHUB_WORKSPACE/${ZIP_FILENAME}_suni_${VERSION}.hash + cat $GITHUB_WORKSPACE/${ZIP_FILENAME}_fiage_${VERSION}.hash + - name: Release uses: softprops/action-gh-release@v2 env: @@ -90,6 +101,7 @@ jobs: files: | ./*.zip ./apk/*.apk + ./*.hash repository: TimeBreeze/Tritium # note you'll typically need to create a personal access token # with permissions to create releases in the other repo @@ -98,6 +110,7 @@ jobs: - name: 同步 repo run: | rm -rf ./*.zip + rm -rf ./*.hash bash -c 'if [ $(git status --porcelain | wc -l) -eq 0 ]; then echo "工作树无变更,跳过提交步骤..." else diff --git a/changelog.md b/changelog.md index ab3808d..a65758c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,14 +1,10 @@ 更新日志: + ## V4.8.2日志 重大更新,解决了部分人不看文档并且不会使用导入配置的bug. -现使用[Tritium_box](https://github.com/TimeBreeze/Tritium_box)非必要不建议,存在未知bug,由于无人反馈使用状态,现快进到存档 - -## V4.8.1日志 -``` -- 优化MTK平台的GPU参数 -- 优化性能模式的性能冗余 升频延迟 -- 改进性能jank Bigjank情况下的Boost值 -``` +现使用[Tritium_box](https://github.com/TimeBreeze/Tritium_box)非必要不建议, + + ## 1.0.6_release 更新日志 - 修复了控制中心开关问题 @@ -19,11 +15,8 @@ 注意 : 由于无障碍保活开关,可能无法使用导致发生闪退,如发生闪退请清楚数据重新打开即可 -## 1.0.5_release 更新日志 - -- 使用原神字体 -- 修复了应用字体问题 -- 修复异常取色问题 +## 日期:2024.11.23 +* 添加了哈希值校验 ## 贡献: - @chenzyadb