mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
fix: brew: check cpu (#2062)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
parent
5e1ea32203
commit
43fcfafe7a
@ -50,7 +50,7 @@ class {{ .Name }} < Formula
|
||||
{{- end }}
|
||||
{{- printf "\n" }}
|
||||
{{- if .MacOSAmd64.DownloadURL }}
|
||||
if OS.mac?
|
||||
if OS.mac? && Hardware::CPU.intel?
|
||||
url "{{ .MacOSAmd64.DownloadURL }}"
|
||||
{{- if .DownloadStrategy }}, :using => {{ .DownloadStrategy }}{{- end }}
|
||||
sha256 "{{ .MacOSAmd64.SHA256 }}"
|
||||
|
@ -8,7 +8,7 @@ class CustomBlock < Formula
|
||||
version "1.0.1"
|
||||
bottle :unneeded
|
||||
|
||||
if OS.mac?
|
||||
if OS.mac? && Hardware::CPU.intel?
|
||||
url "https://dummyhost/download/v1.0.1/bin.tar.gz"
|
||||
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
end
|
||||
|
@ -8,7 +8,7 @@ class CustomDownloadStrategy < Formula
|
||||
version "1.0.1"
|
||||
bottle :unneeded
|
||||
|
||||
if OS.mac?
|
||||
if OS.mac? && Hardware::CPU.intel?
|
||||
url "https://dummyhost/download/v1.0.1/bin.tar.gz", :using => GitHubPrivateRepositoryReleaseDownloadStrategy
|
||||
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
end
|
||||
|
@ -9,7 +9,7 @@ class CustomRequire < Formula
|
||||
version "1.0.1"
|
||||
bottle :unneeded
|
||||
|
||||
if OS.mac?
|
||||
if OS.mac? && Hardware::CPU.intel?
|
||||
url "https://dummyhost/download/v1.0.1/bin.tar.gz", :using => CustomDownloadStrategy
|
||||
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
end
|
||||
|
@ -8,7 +8,7 @@ class Default < Formula
|
||||
version "1.0.1"
|
||||
bottle :unneeded
|
||||
|
||||
if OS.mac?
|
||||
if OS.mac? && Hardware::CPU.intel?
|
||||
url "https://dummyhost/download/v1.0.1/bin.tar.gz"
|
||||
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
end
|
||||
|
@ -8,7 +8,7 @@ class DefaultGitlab < Formula
|
||||
version "1.0.1"
|
||||
bottle :unneeded
|
||||
|
||||
if OS.mac?
|
||||
if OS.mac? && Hardware::CPU.intel?
|
||||
url "https://dummyhost/download/v1.0.1/bin.tar.gz"
|
||||
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
end
|
||||
|
@ -8,7 +8,7 @@ class FooIsBar < Formula
|
||||
version "1.0.1"
|
||||
bottle :unneeded
|
||||
|
||||
if OS.mac?
|
||||
if OS.mac? && Hardware::CPU.intel?
|
||||
url "https://dummyhost/download/v1.0.1/bin.tar.gz"
|
||||
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
end
|
||||
|
@ -8,7 +8,7 @@ class MultipleArmv5 < Formula
|
||||
version "1.0.1"
|
||||
bottle :unneeded
|
||||
|
||||
if OS.mac?
|
||||
if OS.mac? && Hardware::CPU.intel?
|
||||
url "https://dummyhost/download/v1.0.1/bin.tar.gz"
|
||||
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
end
|
||||
|
@ -8,7 +8,7 @@ class MultipleArmv6 < Formula
|
||||
version "1.0.1"
|
||||
bottle :unneeded
|
||||
|
||||
if OS.mac?
|
||||
if OS.mac? && Hardware::CPU.intel?
|
||||
url "https://dummyhost/download/v1.0.1/bin.tar.gz"
|
||||
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
end
|
||||
|
@ -8,7 +8,7 @@ class MultipleArmv7 < Formula
|
||||
version "1.0.1"
|
||||
bottle :unneeded
|
||||
|
||||
if OS.mac?
|
||||
if OS.mac? && Hardware::CPU.intel?
|
||||
url "https://dummyhost/download/v1.0.1/bin.tar.gz"
|
||||
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
end
|
||||
|
2
internal/pipe/brew/testdata/test.rb.golden
vendored
2
internal/pipe/brew/testdata/test.rb.golden
vendored
@ -9,7 +9,7 @@ class Test < Formula
|
||||
license "MIT"
|
||||
bottle :unneeded
|
||||
|
||||
if OS.mac?
|
||||
if OS.mac? && Hardware::CPU.intel?
|
||||
url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Darwin_x86_64.tar.gz"
|
||||
sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c68"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user