Skip to content

feat(mirror): permanent /manager/latest/* links (Worker resolver)#42

Merged
Wangnov merged 1 commit into
mainfrom
feat/mirror-latest-resolver
Jun 9, 2026
Merged

feat(mirror): permanent /manager/latest/* links (Worker resolver)#42
Wangnov merged 1 commit into
mainfrom
feat/mirror-latest-resolver

Conversation

@Wangnov

@Wangnov Wangnov commented Jun 9, 2026

Copy link
Copy Markdown
Owner

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

  • Worker reads version from latest.json (already on R2), rewrites the key to <ver>/<file> (inserting the version into the Windows .exe name), 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 of latest.json per first-install click. Self-update traffic (latest.json + .app.tar.gz) never touches this path, so Workers quota is unaffected.
  • README 中/英 download tables → …/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

  • Worker already deployed (Version 8ba3b8dd). Verified live: latest/CodexAppManager_aarch64.dmg0.1.12/…aarch64.dmg (206), latest/CodexAppManager_x64-setup.exe0.1.12/CodexAppManager_0.1.12_x64-setup.exe (206), and latest/nonexistent.bin → 404. This PR just syncs the repo with what's deployed + flips the README links.

…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.
@Wangnov Wangnov merged commit 335785e into main Jun 9, 2026
3 checks passed
@Wangnov Wangnov deleted the feat/mirror-latest-resolver branch June 9, 2026 15:11
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