From d87aa820527b1929379ec9050028797bdbd2318e Mon Sep 17 00:00:00 2001 From: Logan Pritchett Date: Tue, 17 Feb 2026 22:23:20 -0600 Subject: [PATCH] fix(macos): set release bundle ID so Sparkle auto-update works The distribution script (package-mac-dist.sh) wasn't setting BUNDLE_ID, so it inherited the default 'ai.openclaw.mac.debug' from package-mac-app.sh. The .debug suffix triggers a condition that blanks SUFeedURL, breaking auto-updates. Users see: Update Error! Appcast feed () after trimming it of quotes is empty for OpenClaw! Fix: export BUNDLE_ID=ai.openclaw.mac for distribution builds. Fixes #19748 --- scripts/package-mac-dist.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/package-mac-dist.sh b/scripts/package-mac-dist.sh index 6a57aa52459..843dc9d67aa 100755 --- a/scripts/package-mac-dist.sh +++ b/scripts/package-mac-dist.sh @@ -16,6 +16,10 @@ BUILD_CONFIG="${BUILD_CONFIG:-release}" # Default to universal binary for distribution builds (supports both Apple Silicon and Intel Macs) export BUILD_ARCHS="${BUILD_ARCHS:-all}" +# Use release bundle ID (not .debug) so Sparkle auto-update works. +# The .debug suffix in package-mac-app.sh blanks SUFeedURL intentionally for dev builds. +export BUNDLE_ID="${BUNDLE_ID:-ai.openclaw.mac}" + "$ROOT_DIR/scripts/package-mac-app.sh" APP="$ROOT_DIR/dist/OpenClaw.app"