Skip to content

Commit a4da5c4

Browse files
Lee Seongjooclaude
andcommitted
build.sh: kill the running instance before relaunching
`open` only activates an already-running app, so reinstalls kept running the old in-memory binary (stale menu). Stop the running instance first. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent c180670 commit a4da5c4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎build.sh‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ build() {
4444
}
4545

4646
install_and_register() {
47+
echo "==> Stopping any running instance (so 'open' launches the new binary, not the old one)"
48+
pkill -f "$APP_NAME.app/Contents/MacOS/$APP_NAME" 2>/dev/null && sleep 1 || true
49+
4750
echo "==> Installing to $INSTALL_DIR (Launch Services only scans ~/Applications and /Applications)"
4851
mkdir -p "$INSTALL_DIR"
4952
rm -rf "$INSTALL_DIR/$APP_NAME.app"

0 commit comments

Comments
 (0)