mirror of
https://github.com/zen-browser/desktop.git
synced 2025-12-11 17:12:36 +00:00
Merge pull request #6464 from UnownPlain/fix-checksum
Fix files paths in release notes generation
This commit is contained in:
39
.github/workflows/src/generate_release_notes.sh
vendored
39
.github/workflows/src/generate_release_notes.sh
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user