Skip to content

Commit

Permalink
chore: fix wrong file path and exclude binary files in src release (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhenxu94 authored Oct 14, 2021
1 parent c023972 commit 49d5362
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

Expand Down

0 comments on commit 49d5362

Please sign in to comment.