Skip to content

Fix download page to resolve latest release assets dynamically#2250

Merged
Erol444 merged 3 commits intomainfrom
fix/download-page-dynamic-release-assets
Apr 22, 2026
Merged

Fix download page to resolve latest release assets dynamically#2250
Erol444 merged 3 commits intomainfrom
fix/download-page-dynamic-release-assets

Conversation

@Erol444
Copy link
Copy Markdown
Contributor

@Erol444 Erol444 commented Apr 21, 2026

Already deployed (live): https://github.com/roboflow/inference/actions/runs/24728852816

Summary

  • The download page hardcoded asset filenames that no longer match current releases: Windows installers now include a -cpu suffix (e.g. inference-1.2.3-cpu-installer.exe) and macOS .dmg builds are no longer published. Both links were 404ing.
  • Query the GitHub Releases API at page load and pick the right asset by filename pattern (*installer*.exe for Windows, *.dmg for macOS) instead of building the URL from a templated version.
  • When no matching asset exists (current macOS state), show a fallback message and point the manual link at /releases/latest so users aren't dropped on a broken URL.

Test plan

  • Load /download on Windows — .exe installer download starts for the latest release.
  • Load /download on macOS — fallback message shown, manual link goes to releases page (until a mac build is restored).
  • Simulate GitHub API failure (offline / 403) — manual link falls back to releases page and no broken download is triggered.
  • Non-Win/Mac UA — still redirects to /install/.

🤖 Generated with Claude Code

The download page hardcoded asset filename patterns that no longer
match the current releases: Windows installers now have a `-cpu`
suffix (e.g. `inference-1.2.3-cpu-installer.exe`), and macOS `.dmg`
builds are no longer published. Both links were 404ing.

Fetch the latest release from the GitHub API and pick a matching
asset by filename pattern instead. When no asset matches (e.g. no
macOS build), show a fallback message and point the manual link at
the releases page.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

The Windows/macOS install-page buttons also had hardcoded versioned
asset URLs that 404 after the release naming changes. Point them at
/download so the JS-driven resolver on that page handles OS-specific
asset selection.

Simplify the /download fallback copy to offer two clear alternatives
(releases page or Docker install) in all failure modes: unknown OS,
no matching asset, and API error.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Erol444 Erol444 enabled auto-merge (squash) April 22, 2026 09:07
@Erol444 Erol444 merged commit e8bad7a into main Apr 22, 2026
45 checks passed
@Erol444 Erol444 deleted the fix/download-page-dynamic-release-assets branch April 22, 2026 09:12
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.

2 participants