parent
0313715531
commit
8b7ebcbbcb
|
@ -14,16 +14,7 @@ class Antibody < Formula
|
|||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
|
||||
dir = buildpath/"src/github.com/antibody/antibody"
|
||||
dir.install buildpath.children
|
||||
|
||||
cd dir do
|
||||
system "go", "mod", "vendor"
|
||||
system "go", "build", "-ldflags", "-X main.version=#{version}"
|
||||
bin.install "antibody"
|
||||
end
|
||||
system "go", "build", "-ldflags", "-s -w -X main.version=#{version}", "-trimpath", "-o", bin/"antibody"
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in New Issue