-
Notifications
You must be signed in to change notification settings - Fork 0
/
qcadmin.rb
45 lines (37 loc) · 1.5 KB
/
qcadmin.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
class Qcadmin < Formula
desc "qcadmin is an open-source lightweight cli tool for managing quickon."
homepage "https://github.com/easysoft/quickon_cli"
version "3.0.29"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/easysoft/quickon_cli/releases/download/v#{version}/qcadmin_darwin_arm64"
sha256 "6345d33346115d8d61c0343be98dd79e88c65202e2f0a44392ab19e3c7a52026"
def install
bin.install "qcadmin_darwin_arm64" => "qcadmin"
end
end
if Hardware::CPU.intel?
url "https://github.com/easysoft/quickon_cli/releases/download/v#{version}/qcadmin_darwin_amd64"
sha256 "146c1f4f2f70b8e769dee0754c7a0a3ca2048ce665bc278281dc5d28afae990d"
def install
bin.install "qcadmin_darwin_amd64" => "qcadmin"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/easysoft/quickon_cli/releases/download/v#{version}/qcadmin_linux_amd64"
sha256 "459ee0ffc9abc857e84156043aa03b30b2ccf8794408047d25868e69b0bdce47"
def install
bin.install "qcadmin_linux_amd64" => "qcadmin"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/easysoft/quickon_cli/releases/download/v#{version}/qcadmin_linux_arm64"
sha256 "3a27d8feb45b411f7adbbbed4aa9b1fe5c13f3f13960e35b73cc9554330292e5"
def install
bin.install "qcadmin_linux_arm64" => "qcadmin"
end
end
end
end