From fb83712c8823769fd6681ca23236161d23d8f912 Mon Sep 17 00:00:00 2001 From: Vijay Date: Tue, 3 Sep 2024 13:04:05 +0530 Subject: [PATCH 1/2] wush 0.1.2 --- Formula/w/wush.rb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Formula/w/wush.rb diff --git a/Formula/w/wush.rb b/Formula/w/wush.rb new file mode 100644 index 000000000000..93d0b80a9b8f --- /dev/null +++ b/Formula/w/wush.rb @@ -0,0 +1,29 @@ +class Wush < Formula + desc "Transfer files between computers via WireGuard" + homepage "https://github.com/coder/wush" + url "https://github.com/coder/wush/archive/refs/tags/v0.1.2.tar.gz" + sha256 "8e1ffd24b51775ac68116b381cf4523a54d4e7742e440b7d279418faa52904eb" + license "CC0-1.0" + + depends_on "go" => :build + + def install + system "go", "build", *std_go_args(ldflags: "-s -w -X main.version=#{version}"), "./cmd/wush" + end + + test do + read, write = IO.pipe + + pid = fork do + exec bin/"wush", "serve", out: write + end + + output = read.gets + assert_includes output, "Picked DERP region" + output = read.gets + assert_includes output, "Your auth key is:" + ensure + Process.kill "TERM", pid + Process.wait pid + end +end From 3b7079e48d1274e608fde956acd7bfa99db43d6a Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Wed, 4 Sep 2024 05:40:00 +0000 Subject: [PATCH 2/2] wush: add 0.1.2 bottle. --- Formula/w/wush.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Formula/w/wush.rb b/Formula/w/wush.rb index 93d0b80a9b8f..8a42d2e05406 100644 --- a/Formula/w/wush.rb +++ b/Formula/w/wush.rb @@ -5,6 +5,16 @@ class Wush < Formula sha256 "8e1ffd24b51775ac68116b381cf4523a54d4e7742e440b7d279418faa52904eb" license "CC0-1.0" + bottle do + sha256 cellar: :any_skip_relocation, arm64_sonoma: "55be2f80aef9e2edd1dc8ccd5d4446564ef4d867694d4688c12871f0bf1b552e" + sha256 cellar: :any_skip_relocation, arm64_ventura: "9bf2232ebe8555126b5c7d42536dcb7cac0ef1256f8e3f9e6e55ad051d486421" + sha256 cellar: :any_skip_relocation, arm64_monterey: "45dadb5bef4cbbe4963cf44f82d3d70c19c5f3f19e14409a7f8f25f3f5463df8" + sha256 cellar: :any_skip_relocation, sonoma: "3ad68dddde27cf173f7bc31c2851d31bda5b160149dde5d7a141767b48ebfa75" + sha256 cellar: :any_skip_relocation, ventura: "1effeb2d4cfa71f7b35d0f031141872f29fd0a9b0ecf462208624bfc17a809d9" + sha256 cellar: :any_skip_relocation, monterey: "dadfd9815b1eacd11d77969c3ee911f61b4bff2f370684e568462e5e88fd3ffd" + sha256 cellar: :any_skip_relocation, x86_64_linux: "fd1b0ca47659326e64f161e44fdfe8f424c0359538672e50126e12b5fdd333d3" + end + depends_on "go" => :build def install