From 89f47ebaacb18e33e16b68e004c58a9266e243bd Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 13 Jun 2023 17:23:12 +0800 Subject: [PATCH] * Delete the .js.map and .gz files when packaging. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c1abf7429b..1fcfed77fe 100644 --- a/Makefile +++ b/Makefile @@ -254,8 +254,8 @@ enrpm: rpmbuild -ba ~/rpmbuild/SPECS/zentaopms.spec cp ~/rpmbuild/RPMS/noarch/zentaoalm-${VERSION}-1.noarch.rpm ./ rm -rf ~/rpmbuild -rmJsMap: - find zentaopms/ -name "*.js.map" -delete +cleanAssets: + find zentaopms/ -type f \( -name "*.js.map" -o -name "*.gz" \) -delete ciCommon: make clean git pull @@ -268,7 +268,7 @@ ciCommon: endif make package - make rmJsMap + make cleanAssets zip -rq -9 ZenTaoPMS.$(VERSION).zip zentaopms # en cd zentaopms/; grep -rl 'zentao.net'|xargs sed -i 's/zentao.net/zentao.pm/g';