mirror of
https://github.com/storytold/artcraft-services.git
synced 2026-11-28 14:18:42 -08:00
## Summary - Remove the unused legacy `craft_apps` APIs, cache and poller. The maintainer confirmed these APIs were never used and complete removal is the intended outcome. The new signed static catalog is the source for release metadata. - Statically generate release metadata (stable, prerelease, and nightly channels + `SHA256SUMS.txt` assets) into `out/launcher-catalog.toml` during `npm run build:cloudflare`, mirroring how the static Linux repositories work (`scripts/generate-static-repos.mjs`): - Add `scripts/generate-launcher-catalog.mjs` to enrich `public/launcher-catalog.toml` into `out/launcher-catalog.toml` with top-level `generated_at`, `[launcher.releases.*]`, and per-app `[apps.releases.*]` tables while staying within `MAX_CATALOG_BYTES` (1 MiB) and keeping `public/launcher-catalog.toml` untouched for `sync-launcher-catalog.py --check`. - Run `scripts/generate-launcher-catalog.mjs` in `scripts/build-cloudflare.mjs` immediately before `signLauncherCatalog(out)` so `out/launcher-catalog.toml.sig` is an Ed25519 signature over the final generated bytes using `LAUNCHER_CATALOG_SIGNING_KEY`. - Extend `src/lib/crafting-app-releases.ts` and `.github/workflows/update-craft-release-versions.yml` to also track `CRAFT_PRERELEASE_RELEASES` and `CRAFT_COMMUNITY_RELEASES` alongside `CRAFT_APP_RELEASES`, `CRAFT_LAUNCHER_RELEASE`, and `CRAFT_NIGHTLY_RELEASES`. - Add unit tests in `scripts/generate-launcher-catalog.test.mjs` and update `scripts/LAUNCHER-CATALOG.md`. ## Verification - `SQLX_OFFLINE=true cargo check -p artcraft_api_defs -p redis_schema -p storyteller-web --tests` - `cd frontend/apps/artcraft-website-next && npm run typecheck` - `cd frontend/apps/artcraft-website-next && npm run test:launcher-catalog` (8/8 passing) - `cd frontend/apps/artcraft-website-next && python3 -m unittest scripts/test_sync_launcher_catalog.py` (5/5 passing) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * The launcher catalog now includes available stable, prerelease, and nightly releases for the launcher, configured apps, and community apps, with release checksums. * Launcher screenshots are served from the website and cached for faster access. * **Changes** * Craft app release information and release-history endpoints are no longer available. Release details are published through the generated launcher catalog instead. * Updated community app repository information in the catalog. * **Documentation** * Updated Cloudflare build guidance to cover catalog generation and signing. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>