mirror of
https://gitea.com/gitea/homebrew-gitea.git
synced 2024-06-02 18:21:26 +05:30
add xz for changelog on darwin-arm64
This commit is contained in:
parent
7c54722a29
commit
fa6de5d82b
|
@ -3,7 +3,7 @@ class Changelog < Formula
|
|||
homepage "https://gitea.com/gitea/changelog"
|
||||
version "master"
|
||||
|
||||
os = OS.mac? ? "darwin-10.6" : "linux"
|
||||
os = OS.mac? ? "darwin-10.12" : "linux"
|
||||
arch = case Hardware::CPU.arch
|
||||
when :i386 then "386"
|
||||
when :x86_64 then "amd64"
|
||||
|
@ -16,7 +16,7 @@ class Changelog < Formula
|
|||
@@url = "https://dl.gitea.io/changelog-tool/#{version}/#{@@filename}"
|
||||
@@using = :nounzip
|
||||
|
||||
if arch == "amd64"
|
||||
if os == "darwin-10.12" || arch == "amd64"
|
||||
@@url += ".xz"
|
||||
@@using = nil
|
||||
depends_on "xz"
|
||||
|
|
Loading…
Reference in a new issue