-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharmory-cli_formula_template.txt
48 lines (41 loc) · 1.23 KB
/
armory-cli_formula_template.txt
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
class ArmoryCli < Formula
desc "CLI for Armory CD-as-a-Service"
homepage "https://docs.armory.io/cd-as-a-service/setup/cli/"
version "#VERSION"
license "Apache-2.0"
on_macos do
if Hardware::CPU.intel?
url "https://armory-cli-releases.s3.amazonaws.com/cli/v#VERSION/armory-darwin-amd64"
sha256 "#darwin-amd64-sha"
def install
bin.install "armory-darwin-amd64" => "armory"
end
end
if Hardware::CPU.arm?
url "https://armory-cli-releases.s3.amazonaws.com/cli/v#VERSION/armory-darwin-arm64"
sha256 "#darwin-arm64-sha"
def install
bin.install "armory-darwin-arm64" => "armory"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://armory-cli-releases.s3.amazonaws.com/cli/v#VERSION/armory-linux-arm64"
sha256 "#linux-arm64-sha"
def install
bin.install "armory-linux-arm64" => "armory"
end
end
if Hardware::CPU.intel?
url "https://armory-cli-releases.s3.amazonaws.com/cli/v#VERSION/armory-linux-amd64"
sha256 "#linux-amd64-sha"
def install
bin.install "armory-linux-amd64" => "armory"
end
end
end
test do
system "#{bin}/armory", "version"
end
end