5
5
class TwitchCli < Formula
6
6
desc "CLI for Twitch's developer offerings"
7
7
homepage "https://github.com/twitchdev/twitch-cli"
8
- version "1.1.22 "
8
+ version "1.1.23 "
9
9
license "Apache-2.0"
10
10
11
11
on_macos do
12
- if Hardware :: CPU . arm?
13
- url "https://github.com/twitchdev/twitch-cli/releases/download/v1.1.22 /twitch-cli_1.1.22_Darwin_arm64 .tar.gz"
14
- sha256 "6be649b47aeff2544eac707942c23c27a34acf25312359d748a9d20d504ac7b6 "
12
+ on_intel do
13
+ url "https://github.com/twitchdev/twitch-cli/releases/download/v1.1.23 /twitch-cli_1.1.23_Darwin_x86_64 .tar.gz"
14
+ sha256 "cc63ecada8bc90ab6682557d3ad19928e125b1171e7f5f9240b70f2fe0c1892c "
15
15
16
16
def install
17
17
bin . install "twitch"
18
18
end
19
19
end
20
- if Hardware :: CPU . intel?
21
- url "https://github.com/twitchdev/twitch-cli/releases/download/v1.1.22 /twitch-cli_1.1.22_Darwin_x86_64 .tar.gz"
22
- sha256 "a46267cf7718ef34e09658b620dfc918180691e1d2f7e7a0d7b8cf02b836df23 "
20
+ on_arm do
21
+ url "https://github.com/twitchdev/twitch-cli/releases/download/v1.1.23 /twitch-cli_1.1.23_Darwin_arm64 .tar.gz"
22
+ sha256 "d612d3bdbac2207b0d61ed8f94968e2716c1d8b971bdee12132cb8b7a88358ca "
23
23
24
24
def install
25
25
bin . install "twitch"
@@ -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/twitchdev/twitch-cli/releases/download/v1.1.22/twitch-cli_1.1.22_Linux_arm64.tar.gz"
33
- sha256 "76b022ed91f27ab870c11747e9dc9593920d73df43fb1aa173a3ed699b0486bf"
34
-
35
- def install
36
- bin . install "twitch"
31
+ on_intel do
32
+ if Hardware ::CPU . is_64_bit?
33
+ url "https://github.com/twitchdev/twitch-cli/releases/download/v1.1.23/twitch-cli_1.1.23_Linux_x86_64.tar.gz"
34
+ sha256 "19d84de26a8822d340768b3b5d23c9e3662b2c968fbbae0d2108d73aa8ab0d69"
35
+
36
+ def install
37
+ bin . install "twitch"
38
+ end
37
39
end
38
40
end
39
- if Hardware ::CPU . intel?
40
- url "https://github.com/twitchdev/twitch-cli/releases/download/v1.1.22/twitch-cli_1.1.22_Linux_x86_64.tar.gz"
41
- sha256 "c072f0397fc359ea3a5a8b9763fecc35fe7f4d9b2fa757392cfcdedadda34baa"
42
-
43
- def install
44
- bin . install "twitch"
41
+ on_arm do
42
+ if Hardware ::CPU . is_64_bit?
43
+ url "https://github.com/twitchdev/twitch-cli/releases/download/v1.1.23/twitch-cli_1.1.23_Linux_arm64.tar.gz"
44
+ sha256 "f4b7f9976367562e36ce9c3a2522d4787bc34566020a9197e8ce2d800db498b6"
45
+
46
+ def install
47
+ bin . install "twitch"
48
+ end
45
49
end
46
50
end
47
51
end
0 commit comments