Skip to content

fix: replace hardcoded install scripts with unified generic versions - #39

Merged
danielsreichenbach merged 3 commits into
mainfrom
fix/install-script-double-v
Feb 19, 2026
Merged

danielsreichenbach merged 3 commits into
mainfrom
fix/install-script-double-v

Conversation

@danielsreichenbach

Copy link
Copy Markdown
Member

Summary

  • Adopts the unified install script approach (bash + PowerShell) using environment variables instead of hardcoded values
  • Fixes the double-v bug in download URLs where TAG_PREFIX was incorrectly constructed, producing URLs like .../vv0.1.0/... instead of .../v0.1.0/...
  • Adds CI workflow to run ShellCheck and test script functionality on Ubuntu, macOS, and Windows

Changes

  • install.sh - Generic bash installer using BINARY_NAMES, BINARY_DEFAULT, REPO, TAG_PREFIX env vars
  • install.ps1 - Generic PowerShell installer with same env var approach
  • .github/workflows/install-script.yml - CI workflow testing scripts on all platforms

Test plan

  • ShellCheck passes on install.sh
  • Install script CI workflow runs on all three platforms
  • Verify --help flag works
  • Verify detect_platform function works
  • Verify syntax check (bash -n) passes

Closes #26

Adopt the unified install script approach from warcraft-rs. The scripts
use environment variables (BINARY_NAMES, BINARY_DEFAULT, REPO, TAG_PREFIX)
instead of hardcoded values, fixing the double-v bug in download URLs
where TAG_PREFIX was incorrectly constructed.

The CI workflow tests script functionality on all three platforms using
cascette-ribbit as the default binary.

Closes #26
@codecov

codecov Bot commented Feb 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Remove quotes from right-hand side of =~ operator to match as regex
rather than literal string. Uses escaped spaces for word boundaries.
Prevent main() from executing when the script is sourced (e.g., for
testing individual functions like detect_platform). Only run main when
the script is executed directly.
@danielsreichenbach
danielsreichenbach merged commit 75e49f7 into main Feb 19, 2026
16 checks passed
@danielsreichenbach
danielsreichenbach deleted the fix/install-script-double-v branch February 19, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

IRM installation fails due to invalid link

1 participant