优化mkota脚本,给用到的脚本增加权限
authorSnickerSun <snickersun@163.com>
Sat, 2 Nov 2024 04:04:25 +0000 (12:04 +0800)
committerSnickerSun <snickersun@163.com>
Sat, 2 Nov 2024 04:04:25 +0000 (12:04 +0800)
mkota.sh
mkota_single_user.sh

index 729813b..1d9e377 100755 (executable)
--- a/mkota.sh
+++ b/mkota.sh
@@ -17,6 +17,7 @@ mkdir -p $PWD/code/sdk/output
 fi
 
 chmod +x ./tools/* -R
+chmod +x ./code/sdk/build/* -R
 if [ ! -d "$SOURCE_DIR" ] ; then
 echo "$SOURCE_DIR not exist , skip create ota package"
 echo ""
@@ -93,7 +94,7 @@ echo $ADDITIONAL_RES_DIR/delfiles not exist, you can put filelist to this file ,
 fi
 
 cd $PWD/code/sdk/
-./build/config/target_config/brandy/build_brandy_update.py
+python ./build/config/target_config/brandy/build_brandy_update.py
 if [ $? != 0 ];
 then
     echo create ota file failed!
index 1888f9f..d923d26 100644 (file)
@@ -18,6 +18,7 @@ mkdir -p $PWD/code/sdk/output
 fi
 
 chmod +x ./tools/* -R
+chmod +x ./code/sdk/build/* -R
 if [ ! -d "$SOURCE_DIR" ] ; then
 echo "$SOURCE_DIR not exist , skip create ota package"
 echo ""
@@ -97,7 +98,7 @@ echo $ADDITIONAL_RES_DIR/delfiles not exist, you can put filelist to this file ,
 fi
 
 cd $PWD/code/sdk/
-./build/config/target_config/brandy/build_brandy_update.py
+python ./build/config/target_config/brandy/build_brandy_update.py
 if [ $? != 0 ];
 then
     echo create ota file failed!