Sign the macOS app and keep its state in SwiftData with iCloud sync
This commit is contained in:
@@ -16,7 +16,7 @@ When asked to deploy, do exactly this, from the worktree root:
|
||||
1. `go generate ./web`, if anything under `web/src/` or `api/openapi.yaml` changed.
|
||||
2. `go install ./cmd/byre && launchctl kickstart -k gui/$(id -u)/run.fc.byre`, always as that one command, never `go install` on its own, and always the last action of the turn.
|
||||
3. When you resume, confirm it came up: read the tail of `~/Library/Logs/byre.log`, and `GET /api/admin/status` through the `tailscale serve` URL (`tailscale serve status` shows it). Report what you deployed and what you checked.
|
||||
4. Once the service is confirmed healthy, rebuild and relaunch the macOS app: run `mac/bundle.sh`, then `pkill -x Byre` to quit every running byre app, whichever worktree it was built from (it exits 1 when none is running, which is fine), then `open mac/.build/byre.app`. The app reads its server address from the shared `run.fc.byre.mac` defaults, so the new build reconnects to prod with no setup. Report that the app was rebuilt and relaunched.
|
||||
4. Once the service is confirmed healthy, rebuild and relaunch the macOS app: run `mac/bundle.sh`, then `pkill -x Byre` to quit every running byre app, whichever worktree it was built from (it exits 1 when none is running, which is fine), then `open mac/.build/byre.app`. The app reads its server address from its iCloud-synced SwiftData store, shared by every build, so the new build reconnects to prod with no setup. Report that the app was rebuilt and relaunched.
|
||||
|
||||
What to expect:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user