mirror of
https://github.com/storytold/artcraft-services.git
synced 2026-11-24 11:21:02 +01:00
## Summary
Add support for `<app>-nightly` packages across the APT (`/apt`), RPM
(`/rpm`), and Arch (`/arch`) Linux repositories in
`artcraft-website-next`, always pointing at the newest published nightly
GitHub prerelease per repository regardless of its release tag.
## Changes
- **`crafting-app-releases.ts`**: Add `CraftNightlyRelease` and
`CRAFT_NIGHTLY_RELEASES` (initially `{}`).
- **`linux-repos.ts`**:
- Resolve `<pkg>-nightly-<version>-linux-<arch>.{deb,rpm,pkg.tar.zst}`
(and `.sig`/`.asc` signatures) against `CRAFT_NIGHTLY_RELEASES` using
each entry's exact GitHub release `tag`.
- Support `tagOverride` in `getShaSums`, `fetchValidatedSha256`,
`computePackageMetadata`, `durablePackageMetadata`,
`getLinuxPackageMetadata`, and `build{Deb,Rpm,Arch}Assets`.
- Emit `<app>-nightly` packages in `getLinuxRepoApps` (with
`ai.artcraft.app-nightly` / `ai.storyteller.<app>-nightly` for Pacman so
they install alongside stable).
- **`update-craft-release-versions.yml`**: Add a `latestNightlyRelease`
pass that scans each repo's published `prerelease: true` GitHub releases
(newest first, regardless of tag format) for `SHA256SUMS.txt` and
`<slug>-nightly-...` Linux packages, and updates
`CRAFT_NIGHTLY_RELEASES`.
- **`tests/linux-repos.spec.ts`**: Add unit test coverage for resolving
`-nightly` Linux package and signature URLs regardless of GitHub release
tag.
## Verification
- `next typegen && npm run typecheck` passed.
- `npx playwright test tests/linux-repos.spec.ts`: 28/29 passed (the 1
browser-based mobile tab test failed locally due to missing
`/opt/google/chrome/chrome` in this environment).
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **New Features**
* Nightly Linux packages are available for ArtCraft Studio, Craft
Launcher, and supported Crafting Apps when a matching release is
published.
* Packages are offered in Debian, RPM, and Arch formats where available,
with release-specific versions and checksums. Supported package
architectures include x86_64 and aarch64, with riscv64 also supported
for Debian and RPM packages.
* The catalog reflects the newest published nightly release with
compatible package assets; products without a matching release are not
listed.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->