-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 738 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (18 loc) · 738 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
.PHONY: build run dump test package icon clean
build: ## Debug build
swift build
run: ## Run the app (menu bar)
swift run CodingBar
dump: ## Print the computed Snapshot as JSON (verify the data layer)
swift run CodingBar --dump-json
test: ## Runnable self-test (XCTest needs Xcode; this works on CLT)
swift run CodingBar --self-test
package: ## Build dist/CodingBar.app
./Scripts/package.sh
icon: ## Regenerate Scripts/AppIcon.icns from the DIRECTION 03 renderer
swift run CodingBar --render-appicon /tmp/CodingBar.iconset
iconutil -c icns /tmp/CodingBar.iconset -o Scripts/AppIcon.icns
rm -rf /tmp/CodingBar.iconset
@echo "✓ Scripts/AppIcon.icns"
clean:
rm -rf .build dist