-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
78 lines (65 loc) · 1.64 KB
/
Copy pathTaskfile.yml
File metadata and controls
78 lines (65 loc) · 1.64 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3'
tasks:
build:
desc: Build debug binary
cmds:
- swift build
release:
desc: Build release binary
cmds:
- swift build -c release
test:
desc: Run unit tests
cmds:
- swift test
sign:
desc: Ad-hoc sign the release binary
deps: [release]
cmds:
- codesign --force --sign - .build/release/apple-bridge
install:
desc: Build, sign, and install to /usr/local/bin
deps: [sign]
cmds:
- cp .build/release/apple-bridge /usr/local/bin/apple-bridge
run:
desc: Build and run the server
deps: [build]
cmds:
- .build/debug/apple-bridge serve
run:status-bar:
desc: Build and run with status bar icon
deps: [build]
cmds:
- .build/debug/apple-bridge serve --status-bar
clean:
desc: Clean build artifacts
cmds:
- swift package clean
setup-launchd:
desc: Install and start the launchd agent
cmds:
- cp com.apple-bridge.agent.plist ~/Library/LaunchAgents/
- launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.apple-bridge.agent.plist
remove-launchd:
desc: Stop and uninstall the launchd agent
cmds:
- launchctl bootout gui/$(id -u) ~/Library/LaunchAgents/com.apple-bridge.agent.plist
- rm ~/Library/LaunchAgents/com.apple-bridge.agent.plist
mcp:install:
desc: Install MCP server dependencies
dir: mcp
cmds:
- npm install
mcp:build:
desc: Build the MCP server
dir: mcp
deps: [mcp:install]
cmds:
- npm run build
mcp:publish:
desc: Publish MCP server to npm
dir: mcp
deps: [mcp:build]
cmds:
- npm publish --access public