fix(mac): align restart/package to use .build
This commit is contained in:
@@ -6,7 +6,7 @@ set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
APP_ROOT="$ROOT_DIR/dist/Clawdis.app"
|
||||
BUILD_PATH="$ROOT_DIR/apps/macos/.build-local"
|
||||
BUILD_PATH="$ROOT_DIR/apps/macos/.build"
|
||||
PRODUCT="Clawdis"
|
||||
|
||||
cd "$ROOT_DIR/apps/macos"
|
||||
|
||||
@@ -43,9 +43,9 @@ kill_all_clawdis() {
|
||||
log "==> Killing existing Clawdis instances"
|
||||
kill_all_clawdis
|
||||
|
||||
# 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"
|
||||
# 2) Rebuild into the same path the packager consumes (.build).
|
||||
run_step "clean build cache" bash -lc "rm -rf '${ROOT_DIR}/apps/macos/.build'"
|
||||
run_step "swift build" bash -lc "cd '${ROOT_DIR}/apps/macos' && swift build -q --product Clawdis"
|
||||
|
||||
# 3) Package + relaunch the app (script also stops any stragglers).
|
||||
run_step "package app" "${ROOT_DIR}/scripts/package-mac-app.sh"
|
||||
|
||||
Reference in New Issue
Block a user