-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinf.rb
54 lines (46 loc) · 1.45 KB
/
inf.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Inf < Formula
desc "infinimesh Platform CLI"
homepage "https://github.com/infinimesh/infinimesh"
version "3.1.2"
license "Apache-2.0"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/infinimesh/inf/releases/download/v3.1.2/inf_3.1.2_Darwin_arm64.tar.gz"
sha256 "40f50f48477aab3839a74f1814bac7c0a9cff984dac621129ab3ef8ee79305c1"
def install
bin.install "inf"
end
end
if Hardware::CPU.intel?
url "https://github.com/infinimesh/inf/releases/download/v3.1.2/inf_3.1.2_Darwin_x86_64.tar.gz"
sha256 "01d73a00a98f2241d2b1492d7a4c5d8ceed6a96494986b243168c084d652f112"
def install
bin.install "inf"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/infinimesh/inf/releases/download/v3.1.2/inf_3.1.2_Linux_x86_64.tar.gz"
sha256 "0c74bca518dade8de67ec8e10a3af14a8d5fadfa364fa2e9b666e88413b42c24"
def install
bin.install "inf"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/infinimesh/inf/releases/download/v3.1.2/inf_3.1.2_Linux_arm64.tar.gz"
sha256 "e566f58865bc98fa1a9f806d12018b30b36d7f793811ffb33286231c42860374"
def install
bin.install "inf"
end
end
end
def caveats
<<~EOS
Start with inf help login ;)
EOS
end
end