From 137dca4081427774f16d44449d159eec2e3171dd Mon Sep 17 00:00:00 2001 From: Beatriz Vieira Date: Wed, 4 Dec 2019 20:46:22 -0300 Subject: [PATCH] build: add release and release-all on makefile --- Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 438574b..76af18d 100644 --- a/Makefile +++ b/Makefile @@ -42,4 +42,16 @@ run: ## tidy: execute go mod tidy tidy: @echo $(ECHOFLAGS) "$(OK_COLOR)==> runing tidy" - @go mod tidy \ No newline at end of file + @go mod tidy + +## release: prepare binary for release +release: + make build + @zip -j bin/git-sv_$(VERSION)_$(BUILDOS)_$(BUILDARCH).zip bin/$(BUILDOS)_$(BUILDARCH)/$(BIN) + +## release-all: prepare linux, darwin and windows binary for release +release-all: + @rm -rf bin + BUILDOS=linux make release + BUILDOS=darwin make release + BUILDOS=windows make release