forked from gitea/gitea
* make: add release-sources * make: release-sources exclude .git and make_evidence * fix: skip exclude MAKE_EVIDENCE_DIR not present in 1.11
This commit is contained in:
parent
f9e66e5a46
commit
eb064dfda2
6
Makefile
6
Makefile
|
@ -420,7 +420,7 @@ $(EXECUTABLE): $(GO_SOURCES)
|
||||||
GO111MODULE=on $(GO) build -mod=vendor $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@
|
GO111MODULE=on $(GO) build -mod=vendor $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@
|
||||||
|
|
||||||
.PHONY: release
|
.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
|
.PHONY: release-dirs
|
||||||
release-dirs:
|
release-dirs:
|
||||||
|
@ -471,6 +471,10 @@ release-compress:
|
||||||
fi
|
fi
|
||||||
cd $(DIST)/release/; for file in `find . -type f -name "*"`; do echo "compressing $${file}" && gxz -k -9 $${file}; done;
|
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 .
|
||||||
|
|
||||||
node_modules: package-lock.json
|
node_modules: package-lock.json
|
||||||
npm install --no-save
|
npm install --no-save
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue