chore(companion): enforce reference-app generator sync in CI

This commit is contained in:
William Valentin
2026-02-26 21:00:28 -08:00
parent 820af97859
commit c96aca5f1d
9 changed files with 63 additions and 3 deletions
+2
View File
@@ -1753,7 +1753,9 @@ Minimal companion CLI:
- `flynn companion --verify-release-bundle ./dist/companion-macos --verify-signing-key ./keys/release-public.pem --verify-signing-key-id team-k1 --require-signature` verifies checksums and signature metadata before install.
- `pnpm companion:bundle -- --output ./dist/companion-macos --platform macos --signing-key ./keys/release-private.pem --signing-key-id team-k1` builds and verifies a release bundle in one step.
- `pnpm companion:reference-apps -- --output ./apps/companion` regenerates macOS/iOS/Android reference app starter shells plus `apps/companion/macos-app` runnable scaffold using a reproducible default `generatedAt` timestamp (override with `--generated-at <iso>`).
- `pnpm companion:reference-apps:check` regenerates `apps/companion` and fails if tracked reference-app artifacts drift from generator output.
- GitHub Actions workflow `.github/workflows/companion-release-bundle.yml` runs build-and-verify bundle automation and uploads release artifacts on manual dispatch.
- GitHub Actions workflow `.github/workflows/companion-reference-apps-check.yml` enforces reference-app generator sync on pull requests.
`run-companion.sh` verifies bundle checksums (`CHECKSUMS.sha256`) before launching `flynn companion`.
- `flynn companion --once --platform ios --app-version 1.2.3 --device-name "iPhone" --status-text ready --battery-pct 84 --power-source battery` sends richer initial node status metadata.