Skip to content

Commit 1a7171b

Browse files
committed
ssh3: update go build
Signed-off-by: Rui Chen <[email protected]>
1 parent ca52013 commit 1a7171b

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Formula/s/ssh3.rb

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ class Ssh3 < Formula
55
tag: "v0.1.7",
66
revision: "31f8242cf30b675c25b981b862f36e73f9fa1d9d"
77
license "Apache-2.0"
8-
head "https://github.com/francoismichel/ssh3.git",
9-
branch: "main"
8+
head "https://github.com/francoismichel/ssh3.git", branch: "main"
109

1110
bottle do
1211
sha256 cellar: :any_skip_relocation, arm64_sequoia: "0f4b007d021b93cfb0c17d853b9ad0f8e8d9112402a7acbbb466f90517e20a12"
@@ -23,13 +22,9 @@ class Ssh3 < Formula
2322
uses_from_macos "libxcrypt"
2423

2524
def install
26-
system "go", "build",
27-
*std_go_args(output: bin/"ssh3", ldflags: "-s -w"),
28-
"cmd/ssh3/main.go"
29-
ENV["CGO_ENABLED"] = "1"
30-
system "go", "build",
31-
*std_go_args(output: bin/"ssh3-server", ldflags: "-s -w"),
32-
"cmd/ssh3-server/main.go"
25+
ldflags = "-s -w"
26+
system "go", "build", *std_go_args(ldflags:, output: bin/"ssh3"), "./cmd/ssh3"
27+
system "go", "build", *std_go_args(ldflags:, output: bin/"ssh3-server"), "./cmd/ssh3-server"
3328
end
3429

3530
test do

0 commit comments

Comments
 (0)