29 lines
812 B
Ruby
29 lines
812 B
Ruby
class Netbird < Formula
|
|
desc "Connect devices into a WireGuard-based overlay network"
|
|
homepage "https://netbird.io/"
|
|
license "BSD-3-Clause"
|
|
|
|
if Hardware::CPU.arm?
|
|
url "https://github.com/netbirdio/netbird/releases/download/v0.82.1/netbird_0.82.1_darwin_arm64.tar.gz"
|
|
sha256 "c7be441f6e53a859322375c7739c5f584f626857fb37268da340742168ff5894"
|
|
else
|
|
url "https://github.com/netbirdio/netbird/releases/download/v0.82.1/netbird_0.82.1_darwin_amd64.tar.gz"
|
|
sha256 "f62a6c8a4bdf2bce86116741071cb9802fc56136c1fb89930f88e1e623a9fb39"
|
|
end
|
|
|
|
livecheck do
|
|
url "https://github.com/netbirdio/netbird"
|
|
strategy :github_latest
|
|
end
|
|
|
|
depends_on :macos
|
|
|
|
def install
|
|
bin.install "netbird"
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_s, shell_output("#{bin}/netbird version")
|
|
end
|
|
end
|