8282 cp app.apk "artifact/ForkClient $(cat ver.txt)${{ matrix.name }}.apk"
8383 mkdir -p tag_asset
8484 cp app.apk "tag_asset/ForkClient_$(cat ver.txt)${{ matrix.name }}.apk"
85+
86+ # Generate checksums for verification
87+ sha256sum app.apk > "artifact/ForkClient $(cat ver.txt)${{ matrix.name }}.apk.sha256"
88+ sha256sum app.apk > "tag_asset/ForkClient_$(cat ver.txt)${{ matrix.name }}.apk.sha256"
8589
8690 # Upload to channel.
8791 set +x
@@ -126,6 +130,22 @@ jobs:
126130 find debug_asset -name "*.apk" | head -1 | sed 's/.*ForkClient //;s/\.apk//' > version.txt
127131 echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
128132 echo "OFFICIAL_VERSION=$(cat version.txt | sed 's/..$//')" >> $GITHUB_ENV
133+ - name : Generate checksums for verification
134+ run : |
135+ echo "— Updated to ${{ env.OFFICIAL_VERSION }} build of the official Telegram." > release_body.txt
136+ echo "" >> release_body.txt
137+ echo "**Build Verification:**" >> release_body.txt
138+ echo "- Workflow: [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> release_body.txt
139+ echo "- Commit: [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})" >> release_body.txt
140+ echo "" >> release_body.txt
141+ echo "**APK SHA256:**" >> release_body.txt
142+ for file in debug_asset/*.apk release_asset/*.apk; do
143+ if [ -f "$file" ]; then
144+ filename=$(basename "$file")
145+ checksum=$(sha256sum "$file" | cut -d' ' -f1)
146+ echo "- $filename: \`$checksum\`" >> release_body.txt
147+ fi
148+ done
129149 - name : Create Release
130150 uses : softprops/action-gh-release@v0.1.15
131151 env :
@@ -137,4 +157,4 @@ jobs:
137157 release_asset/*
138158 tag_name : ${{ env.VERSION }}
139159 name : " ForkClient ${{ env.VERSION }}"
140- body : " — Updated to ${{ env.OFFICIAL_VERSION }} build of the official Telegram. "
160+ body_path : release_body.txt
0 commit comments