2
0

feat: upgarde enhancement

This commit is contained in:
zhangsz
2025-02-22 19:34:48 +08:00
parent a63be15a4a
commit 1509dfc3b3
2 changed files with 11 additions and 7 deletions

View File

@@ -44,7 +44,9 @@ pre-build-tar(){
if [ ! -d ${ReleseDir}/tars ]; then
mkdir -p ${ReleseDir}/tars
fi
source ${BuildRootDir}/bin/control.sh
source ${BuildRootDir}/bin/control.sh
sed -i "s/YYYYMMDD/${RelDate}/" ${BuildDockerDir}/env/wfc-release
git update-index --assume-unchanged ${BuildDockerDir}/env/wfc-release
}
pre-git-pull(){
@@ -70,7 +72,8 @@ pre-build-deb(){
if [ ! -d ${DebSystemdDir} ]; then
mkdir -p ${DebSystemdDir}
fi
sed -i "s/YYYYMMDD/${RelDate}/" ${BuildDockerDir}/env/wfc-release
git update-index --assume-unchanged ${BuildDockerDir}/env/wfc-release
}
build-extras(){
@@ -196,9 +199,10 @@ create-deb(){
}
post-build(){
if [ -f ${TmpEnvFile} ] && [ ! -f ${BuildDockerDir}/.env ]; then
mv -f ${TmpEnvFile} ${BuildDockerDir}/.env
fi
# if [ -f ${TmpEnvFile} ] && [ ! -f ${BuildDockerDir}/.env ]; then
# mv -f ${TmpEnvFile} ${BuildDockerDir}/.env
# fi
git checkout ${BuildDockerDir}/env/wfc-release
}
case "$1" in
@@ -224,7 +228,7 @@ case "$1" in
build-dist
copy-file
create-tar
# post-build
post-build
;;
"deb")
if [ "$SKIP_PRE_GIT_PULL" = false ]; then
@@ -237,7 +241,7 @@ case "$1" in
copy-file
copy-file-debbuild
create-deb
# post-build
post-build
;;
"src-tar")
if [ "$SKIP_PRE_GIT_PULL" = false ]; then