5
5
class ProtoconfXds < Formula
6
6
desc "Envoy XDS integration for protoconf"
7
7
homepage "https://docs.protoconf.sh/"
8
- version "0.1.2-1 "
8
+ version "0.1.2-2 "
9
9
license "MIT"
10
10
11
11
on_macos do
12
- if Hardware :: CPU . intel?
13
- url "https://github.com/protoconf/protoconf-xds/releases/download/v0.1.2-1 /protoconf-xds_0.1.2-1_darwin_amd64 .tar.gz"
14
- sha256 "1ca671ee780fc4bef76f3256d3e755ad2eb936277a74501bceb0368e358cc48c "
12
+ on_intel do
13
+ url "https://github.com/protoconf/protoconf-xds/releases/download/v0.1.2-2 /protoconf-xds_0.1.2-2_darwin_amd64 .tar.gz"
14
+ sha256 "e4cc21fa2eb25ca84a837e860b3f9255f18f823d774823a436394d350949cc12 "
15
15
16
16
def install
17
17
bin . install "protoconf-xds"
18
18
end
19
19
end
20
- if Hardware :: CPU . arm?
21
- url "https://github.com/protoconf/protoconf-xds/releases/download/v0.1.2-1 /protoconf-xds_0.1.2-1_darwin_arm64 .tar.gz"
22
- sha256 "5c3ba548c7735f033c3a54edee6574fda876af1b2c06045444842f0d59eb3646 "
20
+ on_arm do
21
+ url "https://github.com/protoconf/protoconf-xds/releases/download/v0.1.2-2 /protoconf-xds_0.1.2-2_darwin_arm64 .tar.gz"
22
+ sha256 "bd05f09fa50117a85579301eff6e0826d1f1f4b7463a3addfd4489e1289bbd37 "
23
23
24
24
def install
25
25
bin . install "protoconf-xds"
@@ -28,20 +28,24 @@ def install
28
28
end
29
29
30
30
on_linux do
31
- if Hardware ::CPU . arm? && Hardware ::CPU . is_64_bit?
32
- url "https://github.com/protoconf/protoconf-xds/releases/download/v0.1.2-1/protoconf-xds_0.1.2-1_linux_arm64.tar.gz"
33
- sha256 "cd459d149af3a5c7105acf1798580c1bb8ec4b4cf25fb3c01d6130ce794f46e4"
31
+ on_intel do
32
+ if Hardware ::CPU . is_64_bit?
33
+ url "https://github.com/protoconf/protoconf-xds/releases/download/v0.1.2-2/protoconf-xds_0.1.2-2_linux_amd64.tar.gz"
34
+ sha256 "3d5ef61c084cf4cc2b4f27695659d87482d2312c7ca46a4770f499a2f0cec071"
34
35
35
- def install
36
- bin . install "protoconf-xds"
36
+ def install
37
+ bin . install "protoconf-xds"
38
+ end
37
39
end
38
40
end
39
- if Hardware ::CPU . intel?
40
- url "https://github.com/protoconf/protoconf-xds/releases/download/v0.1.2-1/protoconf-xds_0.1.2-1_linux_amd64.tar.gz"
41
- sha256 "8442a94a7d9862234556e9cf562a1c16b121b5a48284fa6584e74f03f38c698c"
41
+ on_arm do
42
+ if Hardware ::CPU . is_64_bit?
43
+ url "https://github.com/protoconf/protoconf-xds/releases/download/v0.1.2-2/protoconf-xds_0.1.2-2_linux_arm64.tar.gz"
44
+ sha256 "ba250d67253209e61b6ec40ccddbc7e5830f3b9f4cb7d35ed773be118b6dce74"
42
45
43
- def install
44
- bin . install "protoconf-xds"
46
+ def install
47
+ bin . install "protoconf-xds"
48
+ end
45
49
end
46
50
end
47
51
end
0 commit comments