fix(release): use Bash 3.2-safe artifact verifier (#1730)

This commit is contained in:
Carlos Florêncio
2026-07-16 12:31:31 +01:00
committed by GitHub
parent 3952e35c8d
commit c784dfcc91
5 changed files with 69 additions and 9 deletions
+3 -6
View File
@@ -62,10 +62,9 @@ updater_suffix_for_platform() {
}
for platform in "${REQUIRED_PLATFORMS[@]}"; do
artifacts=("$ASSETS_DIR"/kandev-desktop-"$platform"-*)
found=0
for artifact in "${artifacts[@]}"; do
for artifact in "$ASSETS_DIR"/kandev-desktop-"$platform"-*; do
if [[ "$artifact" == *.sha256 ]]; then
continue
fi
@@ -87,15 +86,13 @@ for platform in "${REQUIRED_PLATFORMS[@]}"; do
fi
updater_suffix="$(updater_suffix_for_platform "$platform")"
updater_bundles=("$ASSETS_DIR"/kandev-desktop-"$platform"-$updater_suffix)
updater_signatures=("$ASSETS_DIR"/kandev-desktop-"$platform"-$updater_suffix.sig)
for updater_bundle in "${updater_bundles[@]}"; do
for updater_bundle in "$ASSETS_DIR"/kandev-desktop-"$platform"-$updater_suffix; do
if [ ! -f "$updater_bundle.sig" ]; then
echo "Missing updater signature: $updater_bundle.sig" >&2
exit 1
fi
done
for updater_signature in "${updater_signatures[@]}"; do
for updater_signature in "$ASSETS_DIR"/kandev-desktop-"$platform"-$updater_suffix.sig; do
updater_bundle="${updater_signature%.sig}"
if [ ! -f "$updater_bundle" ]; then
echo "Missing updater bundle for signature: $updater_signature" >&2