-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpoktrolld.rb
46 lines (39 loc) · 1.57 KB
/
poktrolld.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
class Poktrolld < Formula
desc "Poktroll - A CLI tool for managing your Pocket Network nodes"
homepage "https://github.com/pokt-network/poktroll"
url "https://github.com/pokt-network/poktroll/archive/refs/tags/v0.0.11-rc.tar.gz"
sha256 "30e228a663f429e21dabca99d09fa62b04dc08e65ac39ddbadc67e91496d29a9"
license "MIT"
livecheck do
url :stable
strategy :github_latest
end
on_macos do
on_intel do # on_macos_do_not_remove
url "https://github.com/pokt-network/poktroll/releases/download/v0.0.11-rc/poktroll_darwin_amd64.tar.gz"
sha256 "9d7abaf8c5ca87430c634c02153520c54dec0496aac590ff32b182446359a0cd"
end
on_arm do # on_macos_do_not_remove
url "https://github.com/pokt-network/poktroll/releases/download/v0.0.11-rc/poktroll_darwin_arm64.tar.gz"
sha256 "393f53e7cf4ce53229c9ee12b8efd1d5206e574ce625aad3233e05d4443f8e36"
end
end
on_linux do
on_intel do # on_linux_do_not_remove
url "https://github.com/pokt-network/poktroll/releases/download/v0.0.11-rc/poktroll_linux_amd64.tar.gz"
sha256 "f58710ffcbea837ef01ad9a9dad011a24b0a7483ffd8946fec890b738612c06f"
end
on_arm do # on_linux_do_not_remove
url "https://github.com/pokt-network/poktroll/releases/download/v0.0.11-rc/poktroll_linux_arm64.tar.gz"
sha256 "823a64f9c75dff78210636b956765607c40697ac2668bc95b6eb6eb8067ba1ff"
end
end
def install
# Ensure that the binary name matches the extracted file
bin.install "poktrolld"
end
test do
# Replace with an actual test command
system "#{bin}/poktrolld", "version"
end
end