fix: build enhancement

This commit is contained in:
zhangsz committed 2025-02-24 14:05:48 +08:00
1 parent 9ba56e815f
commit 69d4a61177
5 files changed
+11 -11

No files matched your search

+2 -6
View File
@@ -87,9 +87,5 @@ yarn.lock
release/debs/*.deb
release/tars/*.tar.gz
release/src-tars/*.tar.gz
debbuild
!debbuild/DEBIAN/control
!debbuild/DEBIAN/postinst
!debbuild/DEBIAN/preinst
!debbuild/DEBIAN/postrm
!debbuild/DEBIAN/prerm
debbuild/etc
debbuild/opt
+4 -1
View File
@@ -45,6 +45,7 @@ pre-build-tar(){
mkdir -p ${ReleseDir}/tars
fi
source ${BuildRootDir}/bin/control.sh
cd ${BuildRootDir}
sed -i "s/YYYYMMDD/${RelDate}/" ${BuildDockerDir}/env/wfc-release
git update-index --assume-unchanged ${BuildDockerDir}/env/wfc-release
}
@@ -72,8 +73,9 @@ pre-build-deb(){
if [ ! -d ${DebSystemdDir} ]; then
mkdir -p ${DebSystemdDir}
fi
cd ${BuildRootDir}
sed -i "s/YYYYMMDD/${RelDate}/" ${BuildDockerDir}/env/wfc-release
--assume-unchanged ${BuildDockerDir}/env/wfc-release
git update-index --assume-unchanged ${BuildDockerDir}/env/wfc-release
}
build-extras(){
@@ -202,6 +204,7 @@ post-build(){
# if [ -f ${TmpEnvFile} ] && [ ! -f ${BuildDockerDir}/.env ]; then
# mv -f ${TmpEnvFile} ${BuildDockerDir}/.env
# fi
cd ${BuildRootDir}
git checkout ${BuildDockerDir}/env/wfc-release
git update-index --no-assume-unchanged ${BuildDockerDir}/env/wfc-release
}
+3 -2
View File
@@ -183,8 +183,9 @@ EOF"
while [ $elapsed -lt $timeout ]; do
health_status=$(docker inspect --format='{{.State.Health.Status}}' $mysql_container_name)
if [ "$health_status" == "healthy" ]; then
echo "Upgrade database: "
${wfc_work_dir}/bin/wfcupgdb.sh all
echo "Container $mysql_container_name is healthy"
echo "Executing database upgrade scripts ..."
${wfc_work_dir}/bin/wfcupgrade.sh
exit 0
fi
sleep $interval
+1 -1
View File
@@ -1,5 +1,5 @@
Package: WFC
Version: 1.0.7
Version: 1.0.8
Section: WFC
Prioritt: optional
Architecture: amd64
+1 -1
View File
@@ -4,4 +4,4 @@ wfc_bin_dir=/opt/wfc/bin
${wfc_bin_dir}/wfccontrol.sh stop
${wfc_bin_dir}/wfcsetup.sh rm all
exit 0