aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2020-02-16 18:53:02 +0100
committerGitHub <noreply@github.com>2020-02-16 12:53:02 -0500
commit9bada628f202e16900f1be8ad73c9bceefb4f5e4 (patch)
tree1c8c44c6da313c6b447ae5757fd8388715d7e988 /Makefile
parentdf758f3cc9aa62ef96bb2dd29624d717383fef0e (diff)
downloadgitea-9bada628f202e16900f1be8ad73c9bceefb4f5e4.tar.gz
gitea-9bada628f202e16900f1be8ad73c9bceefb4f5e4.zip
make: add release-sources (#10295)
* make: add release-sources * make: release-sources exclude .git and make_evidence
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1d2921e4bb..5f4e3faa79 100644
--- a/Makefile
+++ b/Makefile
@@ -446,7 +446,7 @@ $(EXECUTABLE): $(GO_SOURCES) $(TAGS_PREREQ)
GO111MODULE=on $(GO) build -mod=vendor $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@
.PHONY: release
-release: generate release-dirs release-windows release-linux release-darwin release-copy release-compress release-check
+release: generate release-dirs release-windows release-linux release-darwin release-copy release-compress release-sources release-check
.PHONY: release-dirs
release-dirs:
@@ -497,6 +497,10 @@ release-compress:
fi
cd $(DIST)/release/; for file in `find . -type f -name "*"`; do echo "compressing $${file}" && gxz -k -9 $${file}; done;
+.PHONY: release-sources
+release-sources:
+ tar cvzf $(DIST)/release/gitea-src-$(VERSION).tar.gz --exclude $(DIST) --exclude .git --exclude $(MAKE_EVIDENCE_DIR) .
+
node_modules: package-lock.json
npm install --no-save
@touch node_modules