From 2a789e30f8c48931e2abee987a9dfef2fe9a2295 Mon Sep 17 00:00:00 2001 From: Seth Freiberg Date: Wed, 29 Apr 2026 11:41:33 -0400 Subject: [PATCH] fix: guard batch AppImage icon path with pre-flight check --- scripts/build-appimages.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build-appimages.sh b/scripts/build-appimages.sh index d7c2c8e..daea630 100755 --- a/scripts/build-appimages.sh +++ b/scripts/build-appimages.sh @@ -106,6 +106,9 @@ echo "==> [5/6] Bundle batch AppImage" # Batch is CLI-only; reuse the upstream SVG icon so --create-desktop-file has # an icon to reference (linuxdeploy errors if the Icon= entry has no match). BATCH_ICON_FILE="$APPDIR_BATCH/usr/share/icons/hicolor/scalable/apps/glabels.svg" + +[ -f "$BATCH_ICON_FILE" ] || { echo "ERROR: batch icon not found: $BATCH_ICON_FILE" >&2; exit 1; } + cd "$BUILD_DIR" APPIMAGE_EXTRACT_AND_RUN=1 \ "$LINUXDEPLOY_BIN" \