From fa1eb9bf25a6c89c4ba5b15eadce2ad794b75568 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 6 Dec 2025 01:21:31 +0100 Subject: [PATCH] fix(mac): rebuild into .build-local and clean cache --- scripts/restart-mac.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/restart-mac.sh b/scripts/restart-mac.sh index 8367c4ea2..ea4129120 100755 --- a/scripts/restart-mac.sh +++ b/scripts/restart-mac.sh @@ -43,8 +43,9 @@ kill_all_clawdis() { log "==> Killing existing Clawdis instances" kill_all_clawdis -# 2) Rebuild (and optionally extend to tests later if desired). -run_step "swift build" bash -lc "cd '${ROOT_DIR}/apps/macos' && swift build -q" +# 2) Rebuild into the same path the packager consumes. +run_step "clean build cache" bash -lc "rm -rf '${ROOT_DIR}/apps/macos/.build-local'" +run_step "swift build" bash -lc "cd '${ROOT_DIR}/apps/macos' && swift build -q --build-path .build-local --product Clawdis" # 3) Package + relaunch the app (script also stops any stragglers). run_step "package app" "${ROOT_DIR}/scripts/package-mac-app.sh"