-
Notifications
You must be signed in to change notification settings - Fork 1
/
netbird.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.31.1"
license "BSD3"
on_macos do
on_intel do
url "https://github.com/netbirdio/netbird/releases/download/v0.31.1/netbird_0.31.1_darwin_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "4d70dad279d3d8cc0f482c9f914a32f29c0de5dcd6a96ac0201fb9affcb83966"
def install
bin.install "netbird"
end
end
on_arm do
url "https://github.com/netbirdio/netbird/releases/download/v0.31.1/netbird_0.31.1_darwin_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "6698e30971b81f86c8429fecc78e6094392282bb3afbac0bcfca33dfa187d3b4"
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.31.1/netbird_0.31.1_linux_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "c0f44fcf2fe0a693a57fe5a02e3f72ac51eb0a08bfa2264955af99ee51601e48"
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.31.1/netbird_0.31.1_linux_armv6.tar.gz", using: CurlDownloadStrategy
sha256 "0cba7cbe2af0f8f1ddbb855cfc120154e9ab6b05908158cc4ad2690dd44de9bc"
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.31.1/netbird_0.31.1_linux_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "0d59603875ca8ecd56659f44f206554d601a7d1ef7b6718b7556175e38a0354b"
def install
bin.install "netbird"
end
end
end
end
test do
system "#{bin}/netbird version"
end
end