feat(mirror): permanent /manager/latest/* links (Worker resolver)#42
Merged
Conversation
…nent README links The Cloudflare download-router now rewrites /manager/latest/<file> in-place to the current immutable versioned object (read from latest.json on R2): macOS .dmg names pass straight through; the Windows NSIS .exe gets its version inserted (CodexAppManager_x64-setup.exe -> <ver>/CodexAppManager_<ver>_x64-setup.exe). One Worker invocation per request (no redirect to another /manager/ path), plus one cheap R2 GET of latest.json; self-update traffic never hits this path. README's 中/英 mirror links switch to permanent /manager/latest/... URLs so they never need a per-release version bump. Worker already deployed (Version 8ba3b8dd); verified all three latest links resolve to 0.1.12 and a bogus latest/ file 404s.
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.
What
The Cloudflare download-router (
cloudflare/manager-download-router) now resolves/manager/latest/<file>in-place to the current immutable versioned object, so the README mirror links can be permanent and never need a per-release version bump.How
versionfromlatest.json(already on R2), rewrites the key to<ver>/<file>(inserting the version into the Windows.exename), then runs the existing global-R2 / China-IHEP routing on the resolved key. No redirect to another/manager/path → still one Worker invocation; one extra cheap R2 GET oflatest.jsonper first-install click. Self-update traffic (latest.json + .app.tar.gz) never touches this path, so Workers quota is unaffected.…/manager/latest/CodexAppManager_*; the version-less display name for the.exe; the "points at v0.1.11" note now says the links auto-follow the latest release.Status
8ba3b8dd). Verified live:latest/CodexAppManager_aarch64.dmg→0.1.12/…aarch64.dmg(206),latest/CodexAppManager_x64-setup.exe→0.1.12/CodexAppManager_0.1.12_x64-setup.exe(206), andlatest/nonexistent.bin→ 404. This PR just syncs the repo with what's deployed + flips the README links.