diff --git a/brew/brew.go b/brew/brew.go index e0f33e03d..9337f7ad6 100644 --- a/brew/brew.go +++ b/brew/brew.go @@ -16,7 +16,7 @@ import ( const formulae = `class {{ .Name }} < Formula desc "{{ .Desc }}" homepage "{{ .Homepage }}" - url "https://github.com/{{ .Repo }}/releases/download/{{ .Tag }}/{{ .BinaryName }}_Darwin_x86_64.tar.gz" + url "https://github.com/{{ .Repo }}/releases/download/{{ .Tag }}/{{ .BinaryName }}_#{%x(uname -s).gsub(/\n/, '')}_#{%x(uname -m).gsub(/\n/, '')}.tar.gz" head "https://github.com/{{ .Repo }}.git" def install