native macOS codings agent orchestrator
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #152 from onevcat/fix/cli-debug-build-for-dev

fix(build): use debug CLI for dev builds

authored by

Wei Wang and committed by
GitHub
97fab92c d6766836

+12 -3
+12 -3
Makefile
··· 20 20 BUILD ?= 21 21 XCODEBUILD_FLAGS ?= 22 22 .DEFAULT_GOAL := help 23 - .PHONY: build-ghostty-xcframework ensure-ghostty sync-ghostty _check-ghostty-hash _record-ghostty-hash build-app build-cli build-cli-release embed-cli run-app install-dev-build install-release archive export-archive format lint check test test-cli-smoke test-cli-integration bump-version bump-and-release log-stream 23 + .PHONY: build-ghostty-xcframework ensure-ghostty sync-ghostty _check-ghostty-hash _record-ghostty-hash build-app build-cli build-cli-release embed-cli-debug embed-cli run-app install-dev-build install-release archive export-archive format lint check test test-cli-smoke test-cli-integration bump-version bump-and-release log-stream 24 24 25 25 help: # Display this help. 26 26 @-+echo "Run make with one of the following targets:" ··· 82 82 rm -rf ~/Library/Developer/Xcode/DerivedData/supacode-* 83 83 @echo "Done. Xcode module cache cleared for fresh compilation." 84 84 85 - build-app: ensure-ghostty embed-cli # Build the macOS app (Debug) 85 + build-app: ensure-ghostty embed-cli-debug # Build the macOS app (Debug) 86 86 bash -o pipefail -c 'xcodebuild -project supacode.xcodeproj -scheme supacode -configuration Debug build -skipMacroValidation -clonedSourcePackagesDirPath $(SPM_CACHE_DIR) 2>&1 | mise exec -- xcsift -qw --format toon' 87 87 88 88 sync-cli-version: # Sync app MARKETING_VERSION into ProwlCLIShared/ProwlVersion.swift ··· 97 97 build-cli-release: sync-cli-version # Build CLI binary in release mode 98 98 swift build -c release --product prowl 99 99 100 - embed-cli: build-cli-release # Build CLI and copy into Resources for app bundling 100 + embed-cli-debug: build-cli # Build debug CLI and copy into Resources for dev builds 101 + @set -euo pipefail; \ 102 + bin="$$(swift build --show-bin-path)/prowl"; \ 103 + dst="$(CURRENT_MAKEFILE_DIR)/Resources/prowl-cli"; \ 104 + mkdir -p "$$dst"; \ 105 + cp "$$bin" "$$dst/prowl"; \ 106 + chmod +x "$$dst/prowl"; \ 107 + echo "embedded CLI binary at $$dst/prowl" 108 + 109 + embed-cli: build-cli-release # Build release CLI and copy into Resources for distribution 101 110 @set -euo pipefail; \ 102 111 bin="$$(swift build -c release --show-bin-path)/prowl"; \ 103 112 dst="$(CURRENT_MAKEFILE_DIR)/Resources/prowl-cli"; \