Update changelog.rb (#186)
Some checks failed
test / test (3.6.21) (push) Has been cancelled
test / test (4.1.7) (push) Has been cancelled
test / test (latest) (push) Has been cancelled
update / update (push) Successful in 10s

Fix #185

Reviewed-on: #186
Co-authored-by: Lunny Xiao <lunny@noreply.gitea.com>
Co-committed-by: Lunny Xiao <lunny@noreply.gitea.com>
This commit is contained in:
2025-01-05 03:38:24 +00:00
committed by techknowlogick
parent d9e47c803b
commit 27ab5e8cee

View File

@ -6,7 +6,7 @@ class Changelog < Formula
version "main"
license "MIT"
os = OS.mac? ? "darwin-10.12" : "linux"
os = OS.mac? ? "darwin" : "linux"
arch = case Hardware::CPU.arch
when :i386 then "386"
when :x86_64 then "amd64"
@ -19,7 +19,7 @@ class Changelog < Formula
@@url = "https://dl.gitea.com/changelog-tool/#{version}/#{@@filename}"
@@using = :nounzip
if os == "darwin-10.12" || arch == "amd64"
if os == "darwin" || arch == "amd64"
@@url += ".xz"
@@using = nil
depends_on "xz"