From 568edc9cbabbfd3c95e8867721f6175e0d6212e6 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Sat, 7 Dec 2019 15:55:31 +0800 Subject: [PATCH] build: add version to name, compress source code --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c054032..02da407 100755 --- a/Makefile +++ b/Makefile @@ -15,9 +15,13 @@ upload-for-analytics: compress: rm -f dist/gitako.zip - cd dist && zip -r gitako.zip * -x *.map + cd dist && zip -r gitako-$(FULL_VERSION).zip * -x *.map -x *.DS_Store release: $(MAKE) build $(MAKE) upload-for-analytics $(MAKE) compress + $(MAKE) compress-source + +compress-source: + git archive -o dist/source-$(FULL_VERSION).zip HEAD