native macOS codings agent orchestrator
6
fork

Configure Feed

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

Merge pull request #203 from supabitapp/sbertix/quote-path

Quote paths in Makefile for space-safe execution

authored by

Stefano Bertagno and committed by
GitHub
f9ff4606 562977d0

+6 -6
+6 -6
Makefile
··· 23 23 help: # Display this help. 24 24 @-+echo "Run make with one of the following targets:" 25 25 @-+echo 26 - @-+grep -Eh "^[a-z-]+:.*#" $(CURRENT_MAKEFILE_PATH) | sed -E 's/^(.*:)(.*#+)(.*)/ \1 @@@ \3 /' | column -t -s "@@@" 26 + @-+grep -Eh "^[a-z-]+:.*#" "$(CURRENT_MAKEFILE_PATH)" | sed -E 's/^(.*:)(.*#+)(.*)/ \1 @@@ \3 /' | column -t -s "@@@" 27 27 28 28 build-ghostty-xcframework: $(GHOSTTY_BUILD_OUTPUTS) # Build ghostty framework 29 29 30 30 $(GHOSTTY_BUILD_OUTPUTS): 31 - @cd $(CURRENT_MAKEFILE_DIR)/ThirdParty/ghostty && mise exec -- zig build -Doptimize=ReleaseFast -Demit-xcframework=true -Dsentry=false 31 + @cd "$(CURRENT_MAKEFILE_DIR)/ThirdParty/ghostty" && mise exec -- zig build -Doptimize=ReleaseFast -Demit-xcframework=true -Dsentry=false 32 32 rsync -a ThirdParty/ghostty/macos/GhosttyKit.xcframework Frameworks 33 33 @src="$(CURRENT_MAKEFILE_DIR)/ThirdParty/ghostty/zig-out/share/ghostty"; \ 34 34 dst="$(GHOSTTY_RESOURCE_PATH)"; \ ··· 40 40 rsync -a --delete "$$terminfo_src/" "$$terminfo_dst/" 41 41 42 42 build-app: build-ghostty-xcframework # Build the macOS app (Debug) 43 - 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' 43 + 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' 44 44 45 45 run-app: build-app # Build then launch (Debug) with log streaming 46 46 @settings="$$(xcodebuild -project supacode.xcodeproj -scheme supacode -configuration Debug -showBuildSettings -json 2>/dev/null)"; \ ··· 65 65 echo "installed $$dst" 66 66 67 67 archive: build-ghostty-xcframework # Archive Release build for distribution 68 - bash -o pipefail -c 'xcodebuild -project supacode.xcodeproj -scheme supacode -configuration Release -archivePath build/supacode.xcarchive archive CODE_SIGN_STYLE=Manual DEVELOPMENT_TEAM="$$APPLE_TEAM_ID" CODE_SIGN_IDENTITY="$$DEVELOPER_ID_IDENTITY_SHA" OTHER_CODE_SIGN_FLAGS="--timestamp" -skipMacroValidation -clonedSourcePackagesDirPath $(SPM_CACHE_DIR) $(XCODEBUILD_FLAGS) 2>&1 | mise exec -- xcsift -qw --format toon' 68 + bash -o pipefail -c 'xcodebuild -project supacode.xcodeproj -scheme supacode -configuration Release -archivePath build/supacode.xcarchive archive CODE_SIGN_STYLE=Manual DEVELOPMENT_TEAM="$$APPLE_TEAM_ID" CODE_SIGN_IDENTITY="$$DEVELOPER_ID_IDENTITY_SHA" OTHER_CODE_SIGN_FLAGS="--timestamp" -skipMacroValidation -clonedSourcePackagesDirPath "$(SPM_CACHE_DIR)" $(XCODEBUILD_FLAGS) 2>&1 | mise exec -- xcsift -qw --format toon' 69 69 70 70 export-archive: # Export xarchive 71 71 bash -o pipefail -c 'xcodebuild -exportArchive -archivePath build/supacode.xcarchive -exportPath build/export -exportOptionsPlist build/ExportOptions.plist 2>&1 | mise exec -- xcsift -qw --format toon' 72 72 73 73 test: build-ghostty-xcframework 74 - xcodebuild test -project supacode.xcodeproj -scheme supacode -destination "platform=macOS" CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY="" -skipMacroValidation -clonedSourcePackagesDirPath $(SPM_CACHE_DIR) 2>&1 74 + xcodebuild test -project supacode.xcodeproj -scheme supacode -destination "platform=macOS" CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY="" -skipMacroValidation -clonedSourcePackagesDirPath "$(SPM_CACHE_DIR)" 2>&1 75 75 76 76 format: # Format code with swift-format (local only) 77 77 swift-format -p --in-place --recursive --configuration ./.swift-format.json supacode supacodeTests ··· 131 131 @tag="$$(git describe --tags --abbrev=0)"; \ 132 132 repo="$$(gh repo view --json nameWithOwner -q .nameWithOwner)"; \ 133 133 prev="$$(gh release view --json tagName -q .tagName 2>/dev/null || echo '')"; \ 134 - tmp=$$(mktemp); \ 134 + tmp="$$(mktemp)"; \ 135 135 if [ -n "$$prev" ]; then \ 136 136 gh api "repos/$$repo/releases/generate-notes" -f tag_name="$$tag" -f previous_tag_name="$$prev" --jq '.body' > "$$tmp"; \ 137 137 else \