@@ -126,6 +126,22 @@ jobs:
126126 find debug_asset -name "*.apk" | head -1 | sed 's/.*ForkClient //;s/\.apk//' > version.txt
127127 echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
128128 echo "OFFICIAL_VERSION=$(cat version.txt | sed 's/..$//')" >> $GITHUB_ENV
129+ - name : Generate checksums for verification
130+ run : |
131+ echo "— Updated to ${{ env.OFFICIAL_VERSION }} build of the official Telegram." > release_body.txt
132+ echo "" >> release_body.txt
133+ echo "**Build Verification:**" >> release_body.txt
134+ echo "- Workflow: [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> release_body.txt
135+ echo "- Commit: [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})" >> release_body.txt
136+ echo "" >> release_body.txt
137+ echo "**APK SHA256:**" >> release_body.txt
138+ for file in debug_asset/*.apk release_asset/*.apk; do
139+ if [ -f "$file" ]; then
140+ filename=$(basename "$file")
141+ checksum=$(sha256sum "$file" | cut -d' ' -f1)
142+ echo "- $filename: \`$checksum\`" >> release_body.txt
143+ fi
144+ done
129145 - name : Create Release
130146 uses : softprops/action-gh-release@v0.1.15
131147 env :
@@ -137,4 +153,4 @@ jobs:
137153 release_asset/*
138154 tag_name : ${{ env.VERSION }}
139155 name : " ForkClient ${{ env.VERSION }}"
140- body : " — Updated to ${{ env.OFFICIAL_VERSION }} build of the official Telegram. "
156+ body_path : release_body.txt
0 commit comments