From 6dafca79be18bc44172d178b7c0b755ddcb80f37 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 6 Dec 2025 23:46:19 +0100 Subject: [PATCH] build: sign debug app and use stable bundle id --- scripts/package-mac-app.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/package-mac-app.sh b/scripts/package-mac-app.sh index c3ac0e62c..20ed25489 100755 --- a/scripts/package-mac-app.sh +++ b/scripts/package-mac-app.sh @@ -8,6 +8,7 @@ ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)" APP_ROOT="$ROOT_DIR/dist/Clawdis.app" BUILD_PATH="$ROOT_DIR/apps/macos/.build" PRODUCT="Clawdis" +BUNDLE_ID="com.steipete.clawdis.debug" cd "$ROOT_DIR/apps/macos" @@ -22,13 +23,13 @@ mkdir -p "$APP_ROOT/Contents/MacOS" mkdir -p "$APP_ROOT/Contents/Resources" echo "📄 Writing Info.plist" -cat > "$APP_ROOT/Contents/Info.plist" <<'PLIST' +cat > "$APP_ROOT/Contents/Info.plist" < CFBundleIdentifier - com.steipete.clawdis + ${BUNDLE_ID} CFBundleName Clawdis CFBundleExecutable @@ -69,6 +70,13 @@ fi echo "⏹ Stopping any running Clawdis" killall -q Clawdis 2>/dev/null || true +echo "🔏 Ad-hoc signing binaries for stable TCC permissions" +codesign --force --options runtime --timestamp=none --sign - "$APP_ROOT/Contents/MacOS/Clawdis" +if [ -f "$APP_ROOT/Contents/MacOS/ClawdisCLI" ]; then + codesign --force --options runtime --timestamp=none --sign - "$APP_ROOT/Contents/MacOS/ClawdisCLI" +fi +codesign --force --options runtime --timestamp=none --sign - "$APP_ROOT" + echo "✅ Bundle ready at $APP_ROOT" echo "🚀 Launching app"