Skip to content

Packages: the servers hold only metadata, downloads come from GitHub - #161

Merged
zakius merged 1 commit into
mainfrom
fix/packages-from-github
Nov 30, 2026
Merged

zakius merged 1 commit into
mainfrom
fix/packages-from-github

Conversation

@zakius

@zakius zakius commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Follows #160. Every package is in its GitHub release before it is published, so the servers redirect every download there instead of keeping copies.

  • dnf/apt: publish-repo.sh builds the repository metadata on the build machine (repo-build.sh, same packager images) and signs it, then sends only the metadata. Every .deb/.rpm goes through Packages: an update from older metadata gets its build from GitHub #160's nginx redirect. It refuses to publish unless each kept version's release has its files with the same SHA-256, under the names the redirect expects. The old package files in www/ are deleted (--delete-excluded).
  • Windows: publish.sh requires the release to have the zip, installer and update with matching SHA-256 (release.yml uploads all three first). It writes redirects.conf for dubna's site (needs zakius/dubna fix/windows-downloads-from-github) and reloads the site's nginx. It checks from outside that the installer link redirects to the release, and only then publishes the feed and checksums and deletes the site's packages. SHA256SUMS now covers only the current version.
  • tools/from-github.sh is removed; nothing uses it any more.
  • Docs: packages.md (the DNS record can now be proxied by Cloudflare), windows.md, README.

Tested on the build machine:

  • publish-repo.sh up to signing against the real work/dl: verifies the 3 releases, builds the same 3-build metadata as the live repo, and the signature verifies. It refuses a build with no release and a file whose hash differs.
  • windows/publish.sh up to the upload against the current build: it refused until the release had update.exe (uploaded it there). Then it produced the redirects and a feed pointing at the release, and SHA256SUMS matches the site's and its signature verifies.
  • tools/hooks/pre-commit passes.

Not run until after merge: the live publishes.

🤖 Generated with Claude Code

Every package is already in its GitHub release before it is published, so the
package repository and the site now redirect each download there instead of
keeping a copy. publish-repo.sh makes and signs the repository metadata on the
build machine, from the local files, and sends only that; it stops unless each
release has the files with the same SHA-256. windows/publish.sh checks the
release the same way and writes redirects.conf for dubna's site, from the
install page's names and the version's own to the release, then deletes the
site's packages once the redirect works from outside. tools/from-github.sh,
which had the servers download the packages, goes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant