-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobalping.rb
51 lines (44 loc) · 1.48 KB
/
globalping.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Globalping < Formula
desc ""
homepage "https://github.com/jsdelivr/globalping-cli"
version "1.4.4"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/jsdelivr/globalping-cli/releases/download/v1.4.4/globalping_Darwin_x86_64.tar.gz"
sha256 "0977d023fc7a11a659245a1c992058799202368a5629a5a147db8a094e423c26"
def install
bin.install "globalping"
end
end
if Hardware::CPU.arm?
url "https://github.com/jsdelivr/globalping-cli/releases/download/v1.4.4/globalping_Darwin_arm64.tar.gz"
sha256 "bc8a2afc161ffabfc2ec6b0c128266eb1c5f33ad6e0a6714f6723b9133ddf483"
def install
bin.install "globalping"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/jsdelivr/globalping-cli/releases/download/v1.4.4/globalping_Linux_x86_64.tar.gz"
sha256 "f7096be20b2be53ee4f2a7fc3e252afd2903269ca2446bff8ec49c6f0d86c3fb"
def install
bin.install "globalping"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/jsdelivr/globalping-cli/releases/download/v1.4.4/globalping_Linux_arm64.tar.gz"
sha256 "2ee522be57d20443adfa7eea5f5357951d34cb59696e3bb55135352dfe213532"
def install
bin.install "globalping"
end
end
end
end
end