Merge pull request #6464 from UnownPlain/fix-checksum

Fix files paths in release notes generation
This commit is contained in:
mr. m
2025-03-14 20:40:45 +01:00
committed by GitHub

View File

@@ -67,33 +67,38 @@ cat << EOF >> "release_notes.md"
EOF EOF
generate_checksum() { generate_checksum() {
local file=$1 local pattern=$1
if [ -f "$file" ]; then echo "Generating checksum for $pattern"
echo "Generating checksum for $file" sha256sum $pattern 2> /dev/null | awk '{sub(".*/", "", $2); print $1 " " $2}' >> "release_notes.md"
sha256sum "$file" | awk '{print $1 " " $2}' >> "release_notes.md" if [ ${PIPESTATUS[0]} -ne 0 ]; then
else echo "Warning: No files found matching $pattern, skipping checksum."
echo "Warning: $file not found, skipping checksum"
fi fi
} }
files=( files=(
"./zen.source.tar.zst" "./zen.source.tar.zst/*"
"./zen.linux-x86_64.tar.xz" "./zen.linux-x86_64.tar.xz/*"
"./zen.linux-aarch64.tar.xz" "./zen.linux-aarch64.tar.xz/*"
"./zen-x86_64.AppImage" "./zen-x86_64.AppImage/*"
"./zen-x86_64.AppImage.zsync" "./zen-x86_64.AppImage.zsync/*"
"./zen-aarch64.AppImage" "./zen-aarch64.AppImage/*"
"./zen-aarch64.AppImage.zsync" "./zen-aarch64.AppImage.zsync/*"
"./.github/workflows/object/windows-x64-signed-x86_64/zen.win-x86_64.zip" "./.github/workflows/object/windows-x64-signed-x86_64/zen.win-x86_64.zip"
"./zen.win-x86_64.zip/*"
"./.github/workflows/object/windows-x64-signed-arm64/zen.win-arm64.zip" "./.github/workflows/object/windows-x64-signed-arm64/zen.win-arm64.zip"
"./linux.mar" "./zen.win-arm64.zip/*"
"./linux-aarch64.mar" "./linux.mar/*"
"./linux-aarch64.mar/*"
"./.github/workflows/object/windows-x64-signed-x86_64/windows.mar" "./.github/workflows/object/windows-x64-signed-x86_64/windows.mar"
"./windows.mar/*"
"./.github/workflows/object/windows-x64-signed-arm64/windows-arm64.mar" "./.github/workflows/object/windows-x64-signed-arm64/windows-arm64.mar"
"./macos.mar" "./windows-arm64.mar/*"
"./macos.mar/*"
"./.github/workflows/object/windows-x64-signed-x86_64/zen.installer.exe" "./.github/workflows/object/windows-x64-signed-x86_64/zen.installer.exe"
"./zen.installer.exe/*"
"./.github/workflows/object/windows-x64-signed-arm64/zen.installer-arm64.exe" "./.github/workflows/object/windows-x64-signed-arm64/zen.installer-arm64.exe"
"./zen.macos-universal.dmg" "./zen.installer-arm64.exe/*"
"./zen.macos-universal.dmg/*"
) )
for file in "${files[@]}"; do for file in "${files[@]}"; do