2 Commits

Author SHA1 Message Date
Shaggy84675
1168e55140 Let the launcher CI publish releases through the API
Add POST /api/v1/launcher/releases so the launcher workflow can upload
its release zip directly instead of someone uploading it in the admin
tool. The zip goes through the same validation and publisher.

- Requires LAUNCHER_PUBLISH_TOKEN as a bearer token (401 when wrong or
  missing); publishing through the API is disabled (403) while unset
- Errors on launcher API routes are rendered as JSON, so the CI gets a
  422 with the rejection reason without sending an Accept header
- The Authorization header is no longer written to the exception log
- Document that the CI treats "already been published" as a re-run
- Rename the admin upload label to "Upload update files"
2026-11-30 23:46:28 +01:00
Shaggy84675
8bb72bb2b7 Deliver launcher updates from signed CI release zips
Replace the manually set launcher version with releases uploaded from the
CI zip (exes, launcher-manifest.json and launcher-manifest.json.sig).

- New "Launcher" admin tool (renamed from Launcher Message): upload a
  release, switch the current one, delete old ones, set the launcher message
- Uploads are validated: manifest rules, size + SHA-256 of every exe, and
  the ECDSA manifest signature when LAUNCHER_UPDATE_PUBLIC_KEYS is set
- The same zip, manifest or version cannot be published twice; only the
  newest 5 releases are kept and the current one is never removed
- Serve the current release to the launcher at /launcher/{file},
  byte-for-byte and uncached, with range support for resumed downloads
- /download-launcher serves the newest framework build; the legacy
  /api/v1/launcher-version returns the current release version
- Remove the launcher version from the Versioning tool
- Fix the file input button highlighting when hovering the whole input
2026-11-14 14:15:45 +01:00