This commit is contained in:
luoliangyi 2022-09-29 15:06:02 +08:00
parent fd9b29ec21
commit 6b1478a1ac
1 changed files with 8 additions and 7 deletions

View File

@ -13,12 +13,7 @@ FIND_FILE="/home/samba/dpkg" #服务器存放打包路径 不可修改
dpkgtype="app"
ver3=10
mainverstr=$(cat ../sdk/include/huagao/brand.h |grep VERSION_MAIN)
mainverstr=${mainverstr: -2}
mainverstr=$(echo $mainverstr)
minver=$(cat ../sdk/include/huagao/brand.h |grep VERSION_SUB)
minver=${minver: -2}
minver=$(echo $minver)
if [ $2 ];
then
@ -152,7 +147,13 @@ git pull
cd ../../../sdk
git checkout .
git pull
#必须先获取代码
mainverstr=$(cat ../sdk/include/huagao/brand.h |grep VERSION_MAIN)
mainverstr=${mainverstr: -2}
mainverstr=$(echo $mainverstr)
minver=$(cat ../sdk/include/huagao/brand.h |grep VERSION_SUB)
minver=${minver: -2}
minver=$(echo $minver)
cd ../code_device
git checkout .