-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththv.rb
55 lines (47 loc) · 1.6 KB
/
thv.rb
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
50
51
52
53
54
55
# 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/StacklokLabs/toolhive"
version "0.0.17"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/StacklokLabs/toolhive/releases/download/v0.0.17/toolhive_0.0.17_darwin_amd64.tar.gz"
sha256 "f4b2af86f4a41e4e3c43aac5a7cf6423c0f8725c904aee2120c85f9ac452bc85"
def install
bin.install "thv"
end
end
if Hardware::CPU.arm?
url "https://github.com/StacklokLabs/toolhive/releases/download/v0.0.17/toolhive_0.0.17_darwin_arm64.tar.gz"
sha256 "58a13d1fae61952c7434d6986ea741ec5e3de830dd80cd26ce13cf91e638c388"
def install
bin.install "thv"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/StacklokLabs/toolhive/releases/download/v0.0.17/toolhive_0.0.17_linux_amd64.tar.gz"
sha256 "f2b53aaf507b906b879a9510c68f6a271d84eecbf1212c3efc011001f8ffda8d"
def install
bin.install "thv"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/StacklokLabs/toolhive/releases/download/v0.0.17/toolhive_0.0.17_linux_arm64.tar.gz"
sha256 "06f83ab2284fdb3cf3d9e4ffb7ee25101d1118c00a4e7e9533c7a34deca6cb2f"
def install
bin.install "thv"
end
end
end
end
test do
system "#{bin}/thv --help"
end
end