#https://blog.csdn.net/Register_man/article/details/53860064 #http://www.cnblogs.com/end/archive/2012/02/21/2360965.html #source ~/.bash_profile source /etc/zprofile #! /bin/bash Res_DirRoot="" if [ $USEENCRTY -eq 1 ]; then Res_DirRoot=${SRCROOT}"/pack" rm -rf "$Res_DirRoot" mkdir "$Res_DirRoot" else Res_DirRoot=$BUILT_PRODUCTS_DIR"/"$PRODUCT_NAME".app/${ASSETSSUFIX}"; #add by yuntao @2020-11-19 rm -rf "${Res_DirRoot}/bin" fi echo "Res_DirRoot: ${Res_DirRoot}"; Res_Dir="${Res_DirRoot}/res" rm -rf "$Res_Dir" mkdir "$Res_Dir" echo "Res_Dir: ${Res_Dir}"; cd ../Resources/scripts; if [ $PLATFORM -eq 1 ]; then PYTHONIOENCODING=utf-8 python3 copy_2_ios.py $Res_Dir echo "Res_Py: copy_2_ios.py"; else PYTHONIOENCODING=utf-8 python3 copy_2_mac.py $Res_Dir echo "Res_Py: copy_2_mac.py"; fi xattr -rc "${Res_DirRoot}"