-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsequin.rb
More file actions
34 lines (30 loc) · 1.33 KB
/
sequin.rb
File metadata and controls
34 lines (30 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class Sequin < Formula
desc "CLI tool for sequin"
homepage "https://github.com/sequinstream/sequin"
version "v0.14.6"
license "MIT"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/sequinstream/sequin/releases/download/#{version}/sequin-cli-#{version}-darwin-arm64.zip"
sha256 "a1d567d78d9aac5d476be9a8e2901a85be66ae726035f2a74e187eaa82fa0743" # tag:darwin-arm64
else
url "https://github.com/sequinstream/sequin/releases/download/#{version}/sequin-cli-#{version}-darwin-amd64.zip"
sha256 "b9daee178cb77046db705ecb16ce7c38f79c2cb6bd1b5576b3686bca02d72789" # tag:darwin-amd64
end
end
on_linux do
if Hardware::CPU.arm?
url "https://github.com/sequinstream/sequin/releases/download/#{version}/sequin-cli-#{version}-linux-arm64.zip"
sha256 "baf9159722a5c8a10ccad1ffc298ac151fc6ff21400eef27579c60d68f75bdc5" # tag:linux-arm64
else
url "https://github.com/sequinstream/sequin/releases/download/#{version}/sequin-cli-#{version}-linux-amd64.zip"
sha256 "70e669df0b06d4286dc651b9d75d5c202b11360daa5633f532e08df4edc5d45c" # tag:linux-amd64
end
end
def install
bin.install "sequin-cli-#{version}-#{OS.mac? ? 'darwin' : 'linux'}-#{Hardware::CPU.arm? ? 'arm64' : 'amd64'}" => "sequin"
end
test do
assert_match "sequin", shell_output("#{bin}/sequin --help")
end
end