wtfutil 0.27.0

Closes #50602.

Signed-off-by: Dawid Dziurla <dawidd0811@gmail.com>
master
Dawid Dziurla 2020-02-23 15:36:28 +01:00
parent aa37677304
commit 5bcd261bf1
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B
1 changed files with 8 additions and 6 deletions

View File

@ -2,8 +2,8 @@ class Wtfutil < Formula
desc "The personal information dashboard for your terminal"
homepage "https://wtfutil.com"
url "https://github.com/wtfutil/wtf.git",
:tag => "v0.26.0",
:revision => "7ab898c718e693e76a930e334bb0c2836d4cf2d8"
:tag => "v0.27.0",
:revision => "14602299a1487a8f54f1b71ea742368181235ca4"
bottle do
cellar :any_skip_relocation
@ -15,10 +15,12 @@ class Wtfutil < Formula
depends_on "go" => :build
def install
ENV["GOPROXY"] = "https://gocenter.io"
ldflags=["-s -w -X main.version=#{version}",
"-X main.date=#{Time.now.iso8601}"]
system "go", "build", "-ldflags", ldflags.join(" "), "-o", bin/"wtfutil"
ldflags = %W[
-s -w
-X main.version=#{version}
-X main.date=#{Time.now.iso8601}
]
system "go", "build", "-trimpath", "-ldflags", ldflags.join(" "), "-o", bin/"wtfutil"
end
test do