-
Notifications
You must be signed in to change notification settings - Fork 6
/
vsign.rb
32 lines (28 loc) · 945 Bytes
/
vsign.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
class Vsign < Formula
desc "Venafi CodeSign Protect Golang CLI and SDK"
homepage "https://github.com/venafi/vsign"
url "https://github.com/Venafi/vsign/archive/refs/tags/v1.0.2.tar.gz"
sha256 "1be800412a20dc7258544f282c765c2dc5d17beac6dd3fb5b82bcc4fb3ef3c5f"
license "Apache-2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/Venafi/vsign/releases/download/v1.0.2/vsign-darwin-amd64"
sha256 "0255718270ec4db3668de4ed4b0a48cd6cde68993469b4721b641637a2ac0505"
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/Venafi/vsign/releases/download/v1.0.2/vsign-linux-amd64"
sha256 "0a594c3bfadc6ab8e74797087be1d26b6ede626ae94b40065b62391faf9746f9"
end
end
def install
cpu = "amd64"
os = OS.mac? ? "darwin" : "linux"
bin.install "vsign-#{os}-#{cpu}" => "vsign"
end
test do
# Validate install
system "#{bin}/vsign", "version"
end
end