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

0
build/bin/wfcupgrade.sh Normal file → Executable file
View File