Skip to content

fix: add on_linux block to the generated Homebrew formula - #347

Open
MaximeGaudin wants to merge 1 commit into
mainfrom
fix/issue-198-homebrew-linux
Open

fix: add on_linux block to the generated Homebrew formula#347
MaximeGaudin wants to merge 1 commit into
mainfrom
fix/issue-198-homebrew-linux

Conversation

@MaximeGaudin

Copy link
Copy Markdown
Owner

Summary

  • The generated Formula/slint.rb only emitted an on_macos block, so brew install MaximeGaudin/tap/slint failed on Homebrew on Linux even though the release workflow already builds and uploads slint-linux-amd64.tar.gz and slint-linux-arm64.tar.gz.
  • The tap-update step now computes the sha256 sums of both Linux artifacts and emits an on_linux do on_arm / on_intel end block referencing them, mirroring the existing on_macos block.

Fixes #198

Test plan

  • release.yml parses as valid YAML; the tap-update step only runs on workflow_dispatch release, so it is not exercised by this PR's CI.
  • Simulated the generated formula with dummy sums and verified it is syntactically valid Ruby using the standard Homebrew on_linux { on_arm / on_intel } DSL.
  • CI green on the PR

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.

release: Homebrew formula only supports macOS despite Linux binaries being built

1 participant