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.1/netbird_0.83.1_darwin_arm64.tar.gz" sha256 "949c81c6d2c7bbc42d8a0d310ffd1d4ab899dce52748a43d2edc16e83d7e2362" else url "https://github.com/netbirdio/netbird/releases/download/v0.83.1/netbird_0.83.1_darwin_amd64.tar.gz" sha256 "16d267bb615dc893da0ebbc269200848401caf9e6398d6cbe15a17ca5a0994c6" 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