# Operations How to build, install, configure, and run every component. Schemas referenced here are detailed in [data-model.md](./data-model.md). ## The app Distribution is two-tier: **dev builds are local** (built on the build box, installed locally, never published); **releases are durable** and published to forge.black (Forgejo), where any node installs/updates from them without a toolchain or source. ### Daily dev loop (recommended) Use the `./run` task runner for the common actions (it wraps stamp-build, xcodegen, xcodebuild, install-via-platform.sh, relaunch, and helper subprojects). See `./run help` and the script header for the full list and details. ```sh ./run # or ./run dev — Debug build + install to Applications + relaunch ./run test ./run clean ./run generate ./run typecheck ./run governor ... ./run mcp ./run bridge # HTTP bridge for iOS (default :8787) ./run test:all ./run deploy ./run deploy:phone ``` This is the normal iteration loop for macOS (Debug, uses `build/dd` derived data by default; `TVANARCHY_DD=...` to move it). It installs over the user-visible copy in /Applications (or ~/Applications) so Spotlight / dock launches the fresh build, then quits any running instance and re-opens it. The sidebar build stamp makes it obvious when you're running a fresh one. ### Build & install — dev (the build box, plum) For a Release-style dev build (no relaunch, matches what `update.sh` will see): ```sh ./build-install.sh ``` Stamps build identity (git SHA / time → `BuildStamp.swift`), runs `xcodegen`, builds Release into `build/dd`, and installs `TVAnarchy.app` to the OS-appropriate location: `/Applications` when writable (the standard macOS location — admin users, no sudo), else `~/Applications` (Apple's per-user fallback for non-admin accounts). `TVANARCHY_DEST` overrides; non-macOS fails loud. A stale copy at the other candidate location is removed on install so two builds can't drift. The one irreducible manual step is **quit + relaunch** — a running native app can't be hot-swapped. The sidebar build stamp (`v · ·