mirror of
https://gitea.com/gitea/homebrew-gitea.git
synced 2024-06-02 10:11:26 +05:30
Fix wrong path
This commit is contained in:
parent
d007c8938a
commit
99ce6d32e8
14
changelog.rb
14
changelog.rb
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue