1
0
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:
Carlos Alexandro Becker 2021-02-17 05:14:50 -03:00 committed by GitHub
parent 5e1ea32203
commit 43fcfafe7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 11 additions and 11 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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