-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 862 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (25 loc) · 862 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
APP_NAME = CCXcodeConnect
INSTALL_DIR = $(HOME)/Applications
SCHEME = CCXcodeConnect
BUILD_DIR = .build/xcode
.PHONY: build install uninstall clean build-cli run
build:
xcodebuild -scheme $(SCHEME) -configuration Release -derivedDataPath $(BUILD_DIR) build
install: build
@mkdir -p "$(INSTALL_DIR)"
@rm -rf "$(INSTALL_DIR)/$(APP_NAME).app"
@cp -R "$$(find $(BUILD_DIR) -name '$(APP_NAME).app' -path '*/Release/*' | head -1)" "$(INSTALL_DIR)/$(APP_NAME).app"
@echo "Installed $(APP_NAME).app to $(INSTALL_DIR)"
@open "$(INSTALL_DIR)/$(APP_NAME).app"
uninstall:
@osascript -e 'quit app "$(APP_NAME)"' 2>/dev/null || true
@rm -rf "$(INSTALL_DIR)/$(APP_NAME).app"
@rm -f $(HOME)/.claude/ide/*.lock
@echo "Uninstalled $(APP_NAME)"
clean:
@rm -rf $(BUILD_DIR)
@swift package clean
build-cli:
swift build -c release
run:
swift run cc-xcode-connect