-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 860 Bytes
/
Copy pathMakefile
File metadata and controls
38 lines (29 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.PHONY: build app install run test clean uninstall-hooks status
APP := build/NotchPal.app
## Compile the package.
build:
swift build -c release
## Assemble build/NotchPal.app.
app:
./Scripts/build-app.sh
## Copy the app to /Applications and register the agent hooks.
install: app
rm -rf /Applications/NotchPal.app
cp -R $(APP) /Applications/NotchPal.app
/Applications/NotchPal.app/Contents/MacOS/NotchPal --install-hooks
open /Applications/NotchPal.app
@echo "NotchPal is running. Open /hooks in Codex once to trust its hooks."
## Build and launch without installing.
run: app
open $(APP)
test:
swift test
## Show socket, reporter path, and hook state.
status:
swift run NotchPal --status
## Remove NotchPal's hooks from Claude Code and Codex.
uninstall-hooks:
swift run NotchPal --uninstall-hooks
clean:
swift package clean
rm -rf build