From 912803706a33d25c35e1ea6c82c2f5ed35f320db Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 27 Apr 2019 21:01:07 +0800 Subject: [PATCH] Add missing make-compress to fix release (#23) --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 56e8449..9280859 100644 --- a/Makefile +++ b/Makefile @@ -176,6 +176,13 @@ endif release-copy: cd $(DIST); for file in `find /build -type f -name "*"`; do cp $${file} ./release/; done; +.PHONY: release-compress +release-compress: + @hash gxz > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ + $(GO) get -u github.com/ulikunitz/xz/cmd/gxz; \ + fi + cd $(DIST)/release/; for file in `find . -type f -name "*"`; do echo "compressing $${file}" && gxz -k -9 $${file}; done; + .PHONY: release-check release-check: cd $(DIST)/release/; for file in `find . -type f -name "*"`; do echo "checksumming $${file}" && $(SHASUM) `echo $${file} | sed 's/^..//'` > $${file}.sha256; done;