mirror of
https://gitea.com/gitea/homebrew-gitea.git
synced 2024-06-02 10:11:26 +05:30
xz only on supported platform
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
This commit is contained in:
parent
910936873b
commit
72952e46c7
8
gitea.rb
8
gitea.rb
|
@ -13,7 +13,13 @@ class Gitea < Formula
|
|||
end
|
||||
|
||||
@@filename = "gitea-#{version}-#{os}-#{arch}"
|
||||
@@url = "https://dl.gitea.io/gitea/#{version}/#{@@filename}.xz"
|
||||
@@url = "https://dl.gitea.io/gitea/#{version}/#{@@filename}"
|
||||
|
||||
if os == "darwin-10.12" || arch == "amd64"
|
||||
@@url += ".xz"
|
||||
depends_on "xz"
|
||||
end
|
||||
|
||||
@@sha256 = case "#{os}-#{arch}"
|
||||
when "linux-386" then "98d1fde4d9085ca9fec04ac491e17a4b371e8f7b8de631770944715a0e911616"
|
||||
when "linux-amd64" then "c9ba0e981ef46245bfe13a074e8fb9410981909dcd3abb471345a7b9ceabd574"
|
||||
|
|
Loading…
Reference in a new issue