Repository navigation
Packages: the servers hold only metadata, downloads come from GitHub - #161
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows #160. Every package is in its GitHub release before it is published, so the servers redirect every download there instead of keeping copies.
publish-repo.shbuilds the repository metadata on the build machine (repo-build.sh, same packager images) and signs it, then sends only the metadata. Every.deb/.rpmgoes 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 inwww/are deleted (--delete-excluded).publish.shrequires the release to have the zip, installer and update with matching SHA-256 (release.ymluploads all three first). It writesredirects.conffor dubna's site (needs zakius/dubnafix/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.SHA256SUMSnow covers only the current version.tools/from-github.shis removed; nothing uses it any more.packages.md(the DNS record can now be proxied by Cloudflare),windows.md, README.Tested on the build machine:
publish-repo.shup to signing against the realwork/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.shup to the upload against the current build: it refused until the release hadupdate.exe(uploaded it there). Then it produced the redirects and a feed pointing at the release, andSHA256SUMSmatches the site's and its signature verifies.tools/hooks/pre-commitpasses.Not run until after merge: the live publishes.
🤖 Generated with Claude Code