gitea-release.sh: work with any subset of bundles
ci / build (ubuntu-22.04) (push) Canceled after 0s
ci / build (windows-2025) (push) Canceled after 0s
ci / deny (push) Canceled after 0s

A release with only the Windows installer aborted: shasum failed on the
unmatched *.deb and *.rpm globs under set -e. Checksum the files that exist.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-30 18:29:32 +04:00
co-authored by Claude Opus 5.5
parent d70dcc04b6
commit 57b728c7e3
+1 -1
View File
@@ -31,7 +31,7 @@ if [ -f "$SETUP" ] && [ ! -f "$SETUP.sig" ]; then
--app-version "$V" "$SETUP"
fi
(cd "$DIR" && rm -f SHA256SUMS && shasum -a 256 -- *.AppImage *.deb *.rpm *-setup.exe kestrove-nmh-* 2>/dev/null > SHA256SUMS; cat SHA256SUMS)
(cd "$DIR" && rm -f SHA256SUMS && for f in *.AppImage *.deb *.rpm *-setup.exe kestrove-nmh-*; do if [ -f "$f" ]; then shasum -a 256 -- "$f"; fi; done > SHA256SUMS; cat SHA256SUMS)
ID=$(curl -fsS -H "$AUTH" "$API/repos/$REPO/releases/tags/$TAG" 2>/dev/null | node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>{try{console.log(JSON.parse(s).id||"")}catch{console.log("")}})')
if [ -z "$ID" ]; then