···141141142142Each service's output is prefixed with a colored label (`[auth]`, `[cdn]`, `[grpc]`). Press Ctrl+C to shut everything down.
143143144144+The dev runner automatically builds each service into `bin/` before launching. This means the binaries have stable file paths, so **Windows Firewall only prompts once** — subsequent runs reuse the same allowed executables. The wizard performs the same build step transparently.
145145+144146Override defaults with namespaced flags:
145147146148```bash
···221223| `make build` | Build the game server binary |
222224| `make build-cdn` | Build the CDN binary |
223225| `make build-auth` | Build the auth server binary |
226226+| `make build-dev` | Build the dev runner binary to `bin/` |
227227+| `make build-all` | Build all service binaries to `bin/` |
224228| `make build-import` | Build the import-snapshot tool |
225229| `make build-claim-account` | Build the claim-account tool |
230230+| `make clean` | Remove the `bin/` directory |
226231| `make dev` | Run all three services with one command |
227232| `make migrate` | Run goose migrations on `db/game.db` |
228233| `make import` | Import a snapshot (`SNAPSHOT=... UUID=...` required) |
+22-1
server/Makefile
···3030build-claim-account:
3131 go build -o claim-account$(EXE) ./cmd/claim-account
32323333+build-dev:
3434+ go build -o bin/dev$(EXE) ./cmd/dev
3535+3636+build-all:
3737+ifeq ($(OS),Windows_NT)
3838+ if not exist bin mkdir bin
3939+else
4040+ mkdir -p bin
4141+endif
4242+ go build -o bin/dev$(EXE) ./cmd/dev
4343+ go build -o bin/auth-server$(EXE) ./cmd/auth-server
4444+ go build -o bin/octo-cdn$(EXE) ./cmd/octo-cdn
4545+ go build -o bin/lunar-tear$(EXE) ./cmd/lunar-tear
4646+4747+clean:
4848+ifeq ($(OS),Windows_NT)
4949+ if exist bin rmdir /s /q bin
5050+else
5151+ rm -rf bin
5252+endif
5353+3354dev:
3455 go run ./cmd/dev $(ARGS)
3556···5071endif
5172 go run ./cmd/import-snapshot --snapshot $(SNAPSHOT) --uuid $(UUID)
52735353-.PHONY: proto build build-cdn build-auth build-import build-claim-account dev migrate import
7474+.PHONY: proto build build-cdn build-auth build-import build-claim-account build-dev build-all clean dev migrate import