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.83.0/netbird_0.83.0_darwin_arm64.tar.gz"
|
|
sha256 "e7bbaf6821f04781151a601a8e5555663ef0cd45567728c39502144bea21b6fd"
|
|
else
|
|
url "https://github.com/netbirdio/netbird/releases/download/v0.83.0/netbird_0.83.0_darwin_amd64.tar.gz"
|
|
sha256 "8f9174c766180b4b896fef9199725baae5859fc411ee25509c9ca2834a81f32a"
|
|
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
|