Skip to content

fix: installer script downloads wrong URL (404) - #394

Merged
ajianaz merged 1 commit into
mainfrom
fix/installer-asset-url-mismatch
Jul 28, 2026
Merged

ajianaz merged 1 commit into
mainfrom
fix/installer-asset-url-mismatch

Conversation

@ajianaz

@ajianaz ajianaz commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Problem

curl -fsSL .../install-bundle.sh | sh returns 404 because the script generates URLs that do not match actual release asset names.

Script generated Actual asset name
cora-macos-aarch64 cora-aarch64-apple-darwin-v0.8.3.tar.gz

Two bugs:

  1. OS/arch naming mismatch (macos-aarch64 vs aarch64-apple-darwin)
  2. Missing version suffix and extension (.tar.gz / .zip)
  3. Assets are tarballs, not bare binaries

Fix

  • Map to Rust target triples (aarch64-apple-darwin, x86_64-unknown-linux-gnu, etc.)
  • Include version in archive name
  • Download to tmpdir, extract tarball/zip, then install binary
  • Add Windows MSYS2/MINGW detection

Old: cora-{os}-{arch} (bare binary)
New: cora-{target}-v{version}.{ext} (tarball/zip)

- Map to Rust target triples (e.g. aarch64-apple-darwin)
- Extract tar.gz / zip before install
- Add Windows MSYS2/MINGW detection
@ajianaz
ajianaz merged commit a2d2210 into main Jul 28, 2026
10 checks passed
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