Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

homebrew-tap
Clone

Read only, no credentials:

https://rodent.software/homebrew-tap.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/homebrew-tap.git

Homebrew tap for Rodent Software.

Add Linux binaries and correct the tap name

100ec144b6bd20f9c7a2ed6c87e45c4cf2b01778 · keenan · 7d ago · parent 8b2c3ebf

Add Linux binaries and correct the tap name

- Correct the tap label to rodent-software/homebrew-tap, the convention other
  multi-project org taps use, so it is not Vole-specific.
- Add on_linux blocks: brew validates formulae for every platform, and a formula
  with only on_macos blocks fails to tap ("requires at least a URL"). Vole ships
  Linux binaries, so include them.
- Make autobump read the asset set from the formula's own url lines, so it works
  for a macOS-only project or one that adds a platform without scripting changes.

Formula/vole.rb +18−6

@@ -19,11 +19,11 @@ class Vole < Formula
19 19
20 20 depends_on "git"
21 21
22 # The macOS binaries are cross-compiled on Linux and attached to each release
23 # under releases/<tag>/artifacts/, covered by that release's SHA256SUMS. The
24 # checksums below are pinned against that list; the autobump script refreshes
25 # them (and the version) when a new release is published, and fails rather than
26 # ship a checksum that does not match the downloaded asset.
22 # The binaries are cross-compiled and attached to each release under
23 # releases/<tag>/artifacts/, covered by that release's SHA256SUMS. The checksums
24 # below are pinned against that list; the autobump script refreshes them (and
25 # the version) when a new release is published, and fails rather than ship a
26 # checksum that does not match the downloaded asset.
27 27 on_macos do
28 28 on_arm do
29 29 url "https://rodent.software/vole/releases/v#{version}/artifacts/vole-darwin-arm64"
@@ -35,9 +35,21 @@ class Vole < Formula
35 35 end
36 36 end
37 37
38 on_linux do
39 on_arm do
40 url "https://rodent.software/vole/releases/v#{version}/artifacts/vole-linux-arm64"
41 sha256 "980e8dfd779bddf002322ceeed2a449352ddb67f6050649503fb1f631e4df828"
42 end
43 on_intel do
44 url "https://rodent.software/vole/releases/v#{version}/artifacts/vole-linux-amd64"
45 sha256 "58a0ec3f043c5ddb77704b29f54f8cbb995392d64c696b92accfc31c68e7a8a5"
46 end
47 end
48
38 49 def install
50 os = OS.mac? ? "darwin" : "linux"
39 51 arch = Hardware::CPU.arm? ? "arm64" : "amd64"
40 bin.install "vole-darwin-#{arch}" => "vole"
52 bin.install "vole-#{os}-#{arch}" => "vole"
41 53 end
42 54
43 55 # brew services start vole runs the forge in the background. A LaunchAgent