-
-
Notifications
You must be signed in to change notification settings - Fork 228
Description
tldr here's a proposed solution to download latest build for detected architecture: test.html
Problem
When tapping the Download link on https://codexmonitor.app, users are redirected to the GitHub Releases page:
https://github.com/Dimillian/CodexMonitor/releases
On GitHub’s current UI, the macOS .dmg is not immediately visible. The “Assets” section must be expanded manually. For non-technical users this is confusing and easy to miss.
This creates unnecessary friction for what ideally could be a one-click download.
Suggestion
Instead of linking directly to the GitHub Releases page, codexmonitor.app could:
1. Use the GitHub REST API:
https://api.github.com/repos/Dimillian/CodexMonitor/releases/latest
2. Detect the visitor’s platform and architecture:
• macOS (Intel / Apple Silicon)
• Windows x64
• Linux x86_64
• Linux aarch64
3. Automatically redirect to the correct installer:
• macOS → .dmg
• Windows → x64-setup.exe
• Linux → AppImage (preferred over rpm)
4. If detection fails, display a clean fallback page listing all assets.
This would:
• Make downloads effectively one-click
• Remove confusion around hidden GitHub assets
• Improve onboarding for non-technical users
• Keep releases fully hosted on GitHub (no infra change required)
Proposed Implementation
This can be done with a single static HTML file and minimal JS:
• Fetch /releases/latest
• Inspect navigator.userAgentData (or fallback to navigator.userAgent)
• Match asset name patterns
• Redirect using window.location.replace()
• Provide a visible fallback button
• No frameworks required
attached is an example HTML page with a download button with this implemented