From 1e506d46cc7e03d61d499762e9154b2215a29fe3 Mon Sep 17 00:00:00 2001 From: Bernhard Reiter Date: Fri, 13 Oct 2023 17:52:14 +0200 Subject: [PATCH] feat: add macos binaries archive to Makefile --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 154b24d1..19e31c7a 100644 --- a/Makefile +++ b/Makefile @@ -89,10 +89,19 @@ dist: build_linux build_win build_mac_amd64 build_mac_arm64 mkdir -p dist/$(DISTDIR)-windows-amd64/docs cp docs/csaf_uploader.md docs/csaf_validator.md docs/csaf_checker.md \ docs/csaf_downloader.md dist/$(DISTDIR)-windows-amd64/docs + mkdir -p dist/$(DISTDIR)-macos/bin-darwin-amd64 \ + dist/$(DISTDIR)-macos/bin-darwin-arm64 \ + dist/$(DISTDIR)-macos/docs + for f in csaf_downloader csaf_checker csaf_validator csaf_uploader ; do \ + cp bin-darwin-amd64/$$f dist/$(DISTDIR)-macos/bin-darwin-amd64 ; \ + cp bin-darwin-arm64/$$f dist/$(DISTDIR)-macos/bin-darwin-arm64 ; \ + cp docs/$${f}.md dist/$(DISTDIR)-macos/docs ; \ + done mkdir dist/$(DISTDIR)-gnulinux-amd64 cp -r README.md docs bin-linux-amd64 dist/$(DISTDIR)-gnulinux-amd64 cd dist/ ; zip -r $(DISTDIR)-windows-amd64.zip $(DISTDIR)-windows-amd64/ cd dist/ ; tar -cvmlzf $(DISTDIR)-gnulinux-amd64.tar.gz $(DISTDIR)-gnulinux-amd64/ + cd dist/ ; tar -cvmlzf $(DISTDIR)-macos.tar.gz $(DISTDIR)-macos # Remove bin-*-* and dist directories mostlyclean: