-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththv.rb
More file actions
49 lines (43 loc) · 1.59 KB
/
thv.rb
File metadata and controls
49 lines (43 loc) · 1.59 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Thv < Formula
desc "ToolHive (thv) is a lightweight, secure, and fast manager for MCP (Model Context Protocol) servers"
homepage "https://github.com/stacklok/toolhive"
version "0.21.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/stacklok/toolhive/releases/download/v0.21.0/toolhive_0.21.0_darwin_amd64.tar.gz"
sha256 "ffcf8caf1a33c7406d5fad36e3309fe9c161ef26a839fe67751efabf7ad08bea"
define_method(:install) do
bin.install "thv"
end
end
if Hardware::CPU.arm?
url "https://github.com/stacklok/toolhive/releases/download/v0.21.0/toolhive_0.21.0_darwin_arm64.tar.gz"
sha256 "e93ca6de3a3e992bd87cbec5e46b5a69f531e6947b0c50d8c8a36988c3b6f16b"
define_method(:install) do
bin.install "thv"
end
end
end
on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/stacklok/toolhive/releases/download/v0.21.0/toolhive_0.21.0_linux_amd64.tar.gz"
sha256 "e2a802d30274629c8c80c13c698e7d6c0bcd77f34d2709f45d154315fc0efaf0"
define_method(:install) do
bin.install "thv"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/stacklok/toolhive/releases/download/v0.21.0/toolhive_0.21.0_linux_arm64.tar.gz"
sha256 "91efb493f4b0272eb8ba573bd25fc15df4d11821fa3c8c5db59b9a6f0eb5a219"
define_method(:install) do
bin.install "thv"
end
end
end
test do
system "#{bin}/thv --help"
end
end