From 9d7d9285e35beaec9b536ed10c644247070156ec Mon Sep 17 00:00:00 2001 From: Ron Green <11993626+georgettica@users.noreply.github.com> Date: Wed, 25 Aug 2021 17:33:20 +0300 Subject: [PATCH] feat(build): make goreleaser work on macos aswell --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4cfc0014..2a59cb90 100644 --- a/Makefile +++ b/Makefile @@ -15,9 +15,10 @@ fmt: @gofmt -w -s . @git diff --exit-code . +OS := $(shell go env GOOS | sed 's/[a-z]/\U&/') .PHONY: download-goreleaser download-goreleaser: - mkdir -p ./bin && curl -sSLf https://github.com/goreleaser/goreleaser/releases/latest/download/goreleaser_Linux_x86_64.tar.gz -o - | tar --extract --gunzip --directory ./bin goreleaser + mkdir -p ./bin && curl -sSLf https://github.com/goreleaser/goreleaser/releases/latest/download/goreleaser_${OS}_x86_64.tar.gz -o - | tar --extract --gunzip --directory ./bin goreleaser # CI build containers don't include goreleaser by default, # so they need to get it first, and then run the build