-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnetbird.rb
66 lines (57 loc) · 1.94 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
61
62
63
64
65
66
# 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.36.3"
license "BSD3"
on_macos do
on_intel do
url "https://github.com/netbirdio/netbird/releases/download/v0.36.3/netbird_0.36.3_darwin_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "09a80d50c3d1926d866bf5ece79d71beec848d22f70edeb26507ed97ace3bb0c"
def install
bin.install "netbird"
end
end
on_arm do
url "https://github.com/netbirdio/netbird/releases/download/v0.36.3/netbird_0.36.3_darwin_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "a2424ddf62bc28acd757a40f09e2d2d2eed81517cf004753615518ffe684f8a0"
def install
bin.install "netbird"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/netbirdio/netbird/releases/download/v0.36.3/netbird_0.36.3_linux_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "a02cce3a3305db04c4fac7c762ac5a119bf798eeffd2dd148ec799d5cccfd244"
def install
bin.install "netbird"
end
end
end
on_arm do
if !Hardware::CPU.is_64_bit?
url "https://github.com/netbirdio/netbird/releases/download/v0.36.3/netbird_0.36.3_linux_armv6.tar.gz", using: CurlDownloadStrategy
sha256 "194942b11906903f3644198701bdace08e465e4fb1bd5f764ddc9e34f60a6dfe"
def install
bin.install "netbird"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/netbirdio/netbird/releases/download/v0.36.3/netbird_0.36.3_linux_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "beae218255fb1f2ec70f45e004ece22d81040a7ab91ec9a8099ad05ea7bda376"
def install
bin.install "netbird"
end
end
end
end
test do
system "#{bin}/netbird version"
end
end