feat: upgarde enhancement
This commit is contained in:
18
bin/build.sh
18
bin/build.sh
@@ -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
0
build/bin/wfcupgrade.sh
Normal file → Executable file
Reference in New Issue
Block a user