fix: guard batch AppImage icon path with pre-flight check

This commit is contained in:
2026-04-29 11:41:33 -04:00
parent e619699660
commit 2a789e30f8
+3
View File
@@ -106,6 +106,9 @@ echo "==> [5/6] Bundle batch AppImage"
# Batch is CLI-only; reuse the upstream SVG icon so --create-desktop-file has # 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). # 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" 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" cd "$BUILD_DIR"
APPIMAGE_EXTRACT_AND_RUN=1 \ APPIMAGE_EXTRACT_AND_RUN=1 \
"$LINUXDEPLOY_BIN" \ "$LINUXDEPLOY_BIN" \