-
Notifications
You must be signed in to change notification settings - Fork 0
/
netbird.rb
60 lines (51 loc) · 1.9 KB
/
netbird.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
56
57
58
59
60
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Netbird < Formula
desc "Netbird project."
homepage "https://netbird.io/"
version "0.27.10"
license "BSD3"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/netbirdio/netbird/releases/download/v0.27.10/netbird_0.27.10_darwin_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "98e76b7e286e309afdb836d9f969c8228435cd9e1f80d9393fe81a946233a2cc"
def install
bin.install "netbird"
end
end
if Hardware::CPU.intel?
url "https://github.com/netbirdio/netbird/releases/download/v0.27.10/netbird_0.27.10_darwin_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "0b04720044e20ddaba57f18d71855434d8bd9effe05e8dc8264cba30c459439f"
def install
bin.install "netbird"
end
end
end
on_linux do
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://github.com/netbirdio/netbird/releases/download/v0.27.10/netbird_0.27.10_linux_armv6.tar.gz", using: CurlDownloadStrategy
sha256 "bfd085788270de66dc10bd8f9b3d287d213cb29673eec46703dd7dbc768db2ae"
def install
bin.install "netbird"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/netbirdio/netbird/releases/download/v0.27.10/netbird_0.27.10_linux_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "93ac124978d6a9230223095d507c15d9fff8f8fabd9b6c5f4b503b48df3a52dd"
def install
bin.install "netbird"
end
end
if Hardware::CPU.intel?
url "https://github.com/netbirdio/netbird/releases/download/v0.27.10/netbird_0.27.10_linux_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "2490cb3c40660f5de84b62f8f7f7090d1c4755580629adb371d836a18f17fa34"
def install
bin.install "netbird"
end
end
end
test do
system "#{bin}/netbird version"
end
end