add xz for changelog on darwin-arm64

This commit is contained in:
Alexey Terentyev 2021-10-09 00:50:21 +03:00
parent 7c54722a29
commit fa6de5d82b
No known key found for this signature in database
GPG key ID: 60D6C550AEEBB467

View file

@ -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"