fix(homebrew): select binary URL robustly #12

Merged
KofTwentyTwo merged 1 commits from feature/GH-11-homebrew-url-selection into develop 2026-05-26 22:19:08 +00:00
KofTwentyTwo commented 2026-05-26 22:16:51 +00:00 (Migrated from github.com)

Summary

  • Replaces nested on_arm / on_intel Homebrew URL blocks with a single active URL selection.
  • Uses RbConfig::CONFIG["host_cpu"] and RUBY_PLATFORM as fallbacks for newer macOS environments where Homebrew reports CPU as :dunno.
  • Keeps the release workflow generator and packaging/homebrew/limen.rb template in sync.

Validation

  • ruby -c packaging/homebrew/limen.rb
  • nix run nixpkgs#actionlint -- .github/workflows/ci.yml .github/workflows/release.yml
  • git diff --check
  • Patched live KofTwentyTwo/homebrew-tap formula and verified:
    • brew info koftwentytwo/tap/limen
    • brew test koftwentytwo/tap/limen
    • limen --version

Closes #11

## Summary - Replaces nested `on_arm` / `on_intel` Homebrew URL blocks with a single active URL selection. - Uses `RbConfig::CONFIG["host_cpu"]` and `RUBY_PLATFORM` as fallbacks for newer macOS environments where Homebrew reports CPU as `:dunno`. - Keeps the release workflow generator and `packaging/homebrew/limen.rb` template in sync. ## Validation - `ruby -c packaging/homebrew/limen.rb` - `nix run nixpkgs#actionlint -- .github/workflows/ci.yml .github/workflows/release.yml` - `git diff --check` - Patched live `KofTwentyTwo/homebrew-tap` formula and verified: - `brew info koftwentytwo/tap/limen` - `brew test koftwentytwo/tap/limen` - `limen --version` Closes #11
Sign in to join this conversation.