scripts/deploy-local.sh copies runtime assets into .next/standalone and
restarts a local systemd service. Both are wrong on Vercel (no standalone
output by default, no systemd), and any failure inside the script surfaces
as the confusing "Command npm run build exited with 1" on Vercel without
hinting at the postbuild as the culprit.
Bail at the top when VERCEL or CI is set so the build proceeds with just
next build, the way Vercel expects.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Desktop:
- Fleet Runner ships in web-shell mode by default — the AppImage loads
https://fleetcrown.vercel.app (the same React tree the browser serves) so
desktop and web stay at parity from one codebase. FLEETCROWN_WEB_URL overrides
for previews/dev; `=local` disables web-shell for IPC dev work.
- Stable artifact naming via `artifactName: Fleet-Runner-${os}-${arch}.${ext}`
so /releases/latest/download permalinks work; package.json publish target
corrected from "cockpit" → "fleetcrown".
CI:
- New desktop-release.yml workflow: build matrix on macos-latest, windows-latest,
ubuntu-latest fires on fleet-runner-v* tag push. Each runner produces signed
installers via electron-builder --publish always and uploads to a GitHub
Release. workflow_dispatch with dry_run=true builds-only for pipeline tests.
Download UX:
- Page redesigned for non-technical visitors: hero → web vs desktop comparison
→ platform-aware CTA → 3-step "what happens next" → plain-language prereqs
with required/optional badges → developer drawer (collapsed).
- mac/Windows surfaces no longer point at the repo as a "download" — they show
a Coming Soon panel with a release-feed subscription and an honest "Use the
web app instead" escape hatch. Build-from-source demoted to a dev drawer.
- ~30 new ui-public-download-* semantic classes for the new patterns; design
guard remains clean.
Navigation:
- /download added to the sidebar Site section so logged-in users have an in-app
entry point to the desktop app.
- Homepage redirect dropped for signed-in users (onboarding flow preserved);
hero + footer CTAs now surface "Open FleetCrown →" when authenticated.
Marketing copy:
- Roadmap NOW phase reflects the desktop ship (web-shell, embedded watcher,
multi-OS pipeline); NEXT phase reframed to "Distribution and auto-update"
with concrete remaining work (signed mac/Win binaries publicly shipping,
auto-update, native package channels, IPC bridge polish).
- Investors "what we have built" copy updated to mention the desktop app + CI.
Pre-existing fixes folded in:
- Control surface: AttentionBar deduplicates the "Needs attention" reason chip;
control-presenter labels the session-with-mtime-but-no-readiness case as Idle.
- Scripts: cockpit → fleetcrown rename sweep across beacon/install/deploy.
- /api/system/daemon route updates.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
`npm run build` alone left .next/standalone/ with stale CSS/JS chunks,
causing the production server to serve 404s until `install-app` was run
manually. The new postbuild hook runs deploy-local.sh automatically after
every build: copies .next/static and public/ into standalone, then
conditionally restarts the cockpit-app systemd service if installed.
No-ops cleanly on CI (no standalone dir) and on machines without the
service (systemctl check skipped). install-app is preserved for first-time
setup.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>