Fix wrong path

This commit is contained in:
Lunny Xiao 2020-01-28 16:37:45 +08:00
parent d007c8938a
commit 99ce6d32e8
No known key found for this signature in database
GPG key ID: C3B7C91B632F738A

View file

@ -6,13 +6,13 @@ class Changelog < Formula
stable do
version "0.1.0"
url "https://dl.gitea.io/changelog-tool/#{version}/changelog-tool-#{version}-darwin-10.6-amd64"
sha256 `curl -s https://dl.gitea.io/changelog-tool/#{version}/changelog-tool-#{version}-darwin-10.6-amd64.sha256`.split(" ").first
url "https://dl.gitea.io/changelog-tool/#{version}/changelog-#{version}-darwin-10.6-amd64"
sha256 `curl -s https://dl.gitea.io/changelog-tool/#{version}/changelog-#{version}-darwin-10.6-amd64.sha256`.split(" ").first
end
devel do
url "https://dl.gitea.io/changelog-tool/master/changelog-tool-master-darwin-10.6-amd64"
sha256 `curl -s https://dl.gitea.io/changelog-tool/master/changelog-tool-master-darwin-10.6-amd64.sha256`.split(" ").first
url "https://dl.gitea.io/changelog-tool/master/changelog-master-darwin-10.6-amd64"
sha256 `curl -s https://dl.gitea.io/changelog-tool/master/changelog-master-darwin-10.6-amd64.sha256`.split(" ").first
version "master"
end
@ -22,7 +22,7 @@ class Changelog < Formula
end
test do
system "#{bin}/changelog-tool", "--version"
system "#{bin}/changelog", "--version"
end
def install
@ -38,9 +38,9 @@ class Changelog < Formula
system "cd src/code.gitea.io/changelog && make build"
bin.install "#{buildpath}/changelog" => "changelog-tool"
bin.install "#{buildpath}/changelog" => "changelog"
else
bin.install "#{buildpath}/changelog-tool-#{version}-darwin-10.6-amd64" => "changelog-tool"
bin.install "#{buildpath}/changelog-#{version}-darwin-10.6-amd64" => "changelog"
end
end
end