This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git
The following commit(s) were added to refs/heads/main by this push:
new 49d5362 chore: fix wrong file path and exclude binary files in src
release (#81)
49d5362 is described below
commit 49d536241d6fe8f92400702b08710514dc298cd4
Author: kezhenxu94 <[email protected]>
AuthorDate: Thu Oct 14 11:44:32 2021 +0800
chore: fix wrong file path and exclude binary files in src release (#81)
---
Makefile | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index b274e06..7da5f5f 100644
--- a/Makefile
+++ b/Makefile
@@ -87,23 +87,28 @@ clean:
verify: clean license lint test verify-docs
release-src: clean
- -tar -zcvf $(RELEASE_SRC).tgz \
+ -mkdir $(RELEASE_SRC)
+ -tar -zcvf $(RELEASE_SRC)/$(RELEASE_SRC).tgz \
+ --exclude $(RELEASE_SRC).tgz \
--exclude bin \
--exclude .git \
--exclude .idea \
--exclude .DS_Store \
--exclude .github \
- --exclude $(RELEASE_SRC).tgz \
+ --exclude $(RELEASE_SRC) \
--exclude query-protocol/schema.graphqls \
+ --exclude *.jar \
.
+ mv $(RELEASE_SRC)/$(RELEASE_SRC).tgz $(RELEASE_SRC).tgz
+ -rm -rf "$(RELEASE_SRC)"
release-bin: build
-mkdir $(RELEASE_BIN)
-cp -R bin $(RELEASE_BIN)
-cp -R dist/* $(RELEASE_BIN)
-cp -R CHANGES.md $(RELEASE_BIN)
- -cp -R README.adoc $(RELEASE_BIN)
- -cp -R ../NOTICE $(RELEASE_BIN)
+ -cp -R README.md $(RELEASE_BIN)
+ -cp -R NOTICE $(RELEASE_BIN)
-tar -zcvf $(RELEASE_BIN).tgz $(RELEASE_BIN)
-rm -rf "$(RELEASE_BIN)"