2.3 KiB
2.3 KiB
cmuxterm agent notes
Local dev
After making code changes, always run the reload script to launch the Debug app:
./scripts/reload.sh
After making code changes, always run the build:
xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux -configuration Debug -destination 'platform=macOS' build
When rebuilding GhosttyKit.xcframework, always use Release optimizations:
cd ghostty && zig build -Demit-xcframework=true -Doptimize=ReleaseFast
reload = kill and launch the Debug app only:
./scripts/reload.sh
reloadp = kill and launch the Release app:
./scripts/reloadp.sh
reload2 = reload both Debug and Release:
./scripts/reload2.sh
E2E mac UI tests
Run UI tests on the UTM macOS VM (never on the host machine). Always run e2e UI tests via ssh cmux-vm:
ssh cmux-vm 'cd /Users/cmux/GhosttyTabs && xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux -configuration Debug -destination "platform=macOS" -only-testing:GhosttyTabsUITests/UpdatePillUITests test'
Basic tests
Run basic automated tests on the UTM macOS VM (never on the host machine):
ssh cmux-vm 'cd /Users/cmux/GhosttyTabs && xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux -configuration Debug -destination "platform=macOS" build && pkill -x "cmuxterm DEV" || true && APP=$(find /Users/cmux/Library/Developer/Xcode/DerivedData -path "*/Build/Products/Debug/cmuxterm DEV.app" -print -quit) && open "$APP" && for i in {1..20}; do [ -S /tmp/cmuxterm.sock ] && break; sleep 0.5; done && python3 tests/test_update_timing.py && python3 tests/test_signals_auto.py && python3 tests/test_ctrl_socket.py && python3 tests/test_notifications.py'
Release
Tagging a version triggers the GitHub Actions release workflow and uploads the notarized zip.
git tag vX.Y.Z
git push origin vX.Y.Z
gh run watch --repo manaflow-ai/cmuxterm
Notes:
- Requires GitHub secrets:
APPLE_CERTIFICATE_BASE64,APPLE_CERTIFICATE_PASSWORD,APPLE_SIGNING_IDENTITY,APPLE_ID,APPLE_APP_SPECIFIC_PASSWORD,APPLE_TEAM_ID. - The release asset is
cmuxterm-macos.dmgattached to the tag. - README download button points to
releases/latest/download/cmuxterm-macos.dmg. - Versioning: bump the minor version for updates unless explicitly asked otherwise.