Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

3.1 KB
Raw Blame
.PHONY: release upload-desktop upload-desktop-linux upload-node-runtime upload-tmux-runtime upload-grid-runtime terminal-local-manual terminal-local-e2e terminal-prod-e2e

## release: tag this commit vX.Y.Z_desktop and push the tag — CI builds macOS + Linux, publishes to
## GCS, and cuts the GitHub Release. The version is bumped from max(last git tag, live metadata.json),
## because publishing by hand used to move the manifest without ever tagging. ARGS="--dry-run" to
## preview. Same thing as `make release-desktop` from the repo root.
release:
	bash scripts/release-desktop.sh $(ARGS)

## upload-desktop: build, sign, notarize, and publish BOTH macOS builds straight from this machine —
## Intel on Skia (desktop-macos, which every older install and the website also read), then Apple
## Silicon on Impeller (desktop-macos-arm64). See RELEASE.md, "Two macOS builds".
## VERSION=X.Y.Z is REQUIRED: two runs must publish one version, and each bumping from the manifest
## would hand the second one the next number. `make release ARGS=--dry-run` prints it.
## ESCAPE HATCH, not the normal path — use `make release`. This one creates NO git tag, so the repo
## stops reflecting what is published; that is how one tag (v1.0.52) ended up nine releases behind
## the manifest. If you use it, cut a `make release` afterwards to bring the tag back in line.
## ARGS="--no-notarize" is passed to both builds.
upload-desktop:
	@test -n "$(VERSION)" || { echo 'error: VERSION=X.Y.Z is required — `make release ARGS=--dry-run` prints the next one' >&2; exit 1; }
	bash scripts/publish-macos-variant.sh intel $(VERSION) $(ARGS)
	bash scripts/publish-macos-variant.sh apple-silicon $(VERSION) $(ARGS)

## upload-desktop-linux: same escape hatch for Linux ARM64 or x64 (amd64 is an x64 alias).
## Defaults to the current host. Examples: ARCH=arm64, ARCH=x64, ARCH=amd64.
upload-desktop-linux:
	TARGET_ARCH="$(ARCH)" bash scripts/upload-desktop-linux.sh $(ARGS)

## upload-node-runtime: publish checksum-verified managed Node runtimes for desktop bootstrap.
upload-node-runtime:
	bash scripts/publish-managed-node-runtime.sh $(ARGS)

## upload-tmux-runtime: publish the macOS tmux archives built by cli/scripts/build-managed-tmux.sh
## (ARGS="3.5a <dir>"). CI does this from release-tmux-runtime.yml; by hand only for a rebuild.
upload-tmux-runtime:
	bash scripts/publish-managed-tmux-runtime.sh $(ARGS)

## upload-grid-runtime: publish the grid archives built by cli/scripts/build-managed-grid.sh
## (ARGS="0.3.47 <dir>"). The manifest's version is the pin every daemon follows; CI does this from
## release-grid-runtime.yml, by hand only for a rebuild.
upload-grid-runtime:
	bash scripts/publish-managed-grid-runtime.sh $(ARGS)

## terminal-local-manual: start the local backend/CLI stack and open the desktop fixture.
terminal-local-manual:
	bash scripts/start-terminal-local-manual.sh

## terminal-local-e2e: run the local end-to-end terminal test.
terminal-local-e2e:
	bash scripts/test-terminal-local-e2e.sh

## terminal-prod-e2e: run the opt-in production terminal test with explicit evidence variables.
terminal-prod-e2e:
	bash scripts/test-terminal-prod-e2e.sh