2
0

fix: build shell script

This commit is contained in:
zhangsz
2025-06-24 18:03:21 +08:00
parent 36590f1bb6
commit 23dfea7f17
2 changed files with 21 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ BERootDir=${GitRootDir}/be.wfc
FERootDir=${GitRootDir}/fe.wfc
FEUserRootDir=${GitRootDir}/fe.wfc.user
BuildRootDir=${GitRootDir}/build.wfc
LicenseBuildDir=${GitRootDir}/license.build.wfc
LicenseRootDir=${GitRootDir}/license.wfc
WFCWorkDir=/opt/wfc
BuildDockerDir=${BuildRootDir}/build/docker
@@ -82,6 +84,14 @@ pre-git-pull(){
git pull
cd ${BuildRootDir}
git pull
if [ -d ${LicenseRootDir} ]; then
cd ${LicenseRootDir}
git pull
fi
if [ -d ${LicenseBuildDir} ]; then
cd ${LicenseBuildDir}
git pull
fi
}
pre-build-deb(){
@@ -188,6 +198,8 @@ create-src-tar(){
FeRelativeDir=${WFCRelativeDir}/fe.wfc
FeUserRelativeDir=${WFCRelativeDir}/fe.wfc.user
BuildRelativeDir=${WFCRelativeDir}/build.wfc
LicenseSrcDir=${WFCRelativeDir}/license.wfc
LicenseBuildDir=${WFCRelativeDir}/license.build.wfc
cd ${HOME}
tar cvfz ${ReleseDir}/src-tars/${SrcTarFileName} \
--exclude=${WFCRelativeDir}/.vscode \
@@ -219,6 +231,14 @@ create-src-tar(){
--exclude=${BuildRelativeDir}/bin/cpto205.sh \
--exclude=${BuildRelativeDir}/docs/99-reference \
--exclude=${BuildRelativeDir}/docs/100-images \
--exclude=${LicenseSrcDir}/.git \
--exclude=${LicenseSrcDir}/.vscode \
--exclude=${LicenseSrcDir}/target \
--exclude=${LicenseBuildDir}/.git \
--exclude=${LicenseBuildDir}/.vscode \
--exclude=${LicenseBuildDir}/debbuild/opt/lic/docker/jar/*.jar \
--exclude=${LicenseBuildDir}/debbuild/opt/lic/docs \
--exclude=${LicenseBuildDir}/release \
${WFCRelativeDir} 1>/dev/null
echo "done"
}