-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcurlie.rb
55 lines (47 loc) · 1.65 KB
/
curlie.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
47
48
49
50
51
52
53
54
55
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Curlie < Formula
desc "The power of curl, the ease of use of httpie."
homepage "https://curlie.io"
version "1.7.2"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/rs/curlie/releases/download/v1.7.2/curlie_1.7.2_darwin_amd64.tar.gz"
sha256 "c8f2ba79a1da6b5f464f2000da36ee46d65c15b84cd30d4295b922e67a27d403"
def install
bin.install "curlie"
end
end
if Hardware::CPU.arm?
url "https://github.com/rs/curlie/releases/download/v1.7.2/curlie_1.7.2_darwin_arm64.tar.gz"
sha256 "f78d5d3f991f7d488adc8529f8ab1dfe895dd56bbf53eaa7eef69d8816bbb7bb"
def install
bin.install "curlie"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/rs/curlie/releases/download/v1.7.2/curlie_1.7.2_linux_amd64.tar.gz"
sha256 "211f0b46d6a7e669c604194805f2e9086060e39baeddfc16bdbc81e17b2d7894"
def install
bin.install "curlie"
end
end
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://github.com/rs/curlie/releases/download/v1.7.2/curlie_1.7.2_linux_armv6.tar.gz"
sha256 "56b89161abeb06009464bb3ccf56fb613dcf51bf5abce54123c2475e873d0e41"
def install
bin.install "curlie"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/rs/curlie/releases/download/v1.7.2/curlie_1.7.2_linux_arm64.tar.gz"
sha256 "e5e22761af04d98124e333d475c9af6d5346f9ecf88db21d9e54bc8cb3f159d7"
def install
bin.install "curlie"
end
end
end
end