From adc21f31ea7fd9e5e67f370cd1a070e607de8bbb Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Fri, 19 Mar 2021 00:36:45 +0100 Subject: [PATCH] Added ZIPing to Makefile --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 9e76e80..64d2d6e 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,7 @@ all-build: $(addprefix build-, $(subst /,_, $(ALL_PLATFORMS))) OUTBINS = $(foreach bin,$(BINS),bin/v$(VERSION)/$(OS)_$(ARCH)/$(bin)$(BIN_EXTENSION)) build: $(OUTBINS) BUILD_DIRS := bin/v$(VERSION)/$(OS)_$(ARCH) \ + bin/zip-files/v$(VERSION) \ .go/bin/v$(VERSION)/$(OS)_$(ARCH) \ .go/cache @@ -54,6 +55,7 @@ $(STAMPS): go-build @echo "binary: $(OUTBIN)" @if ! cmp -s .go/$(OUTBIN) $(OUTBIN); then \ mv .go/$(OUTBIN) $(OUTBIN); \ + zip -9 ./bin/zip-files/v$(VERSION)/apg_v$(VERSION)_$(OS)_$(ARCH).zip $(OUTBIN) \ date >$@; \ fi