copyRes.sh 862 B

123456789101112131415161718192021222324252627282930313233343536
  1. #https://blog.csdn.net/Register_man/article/details/53860064
  2. #http://www.cnblogs.com/end/archive/2012/02/21/2360965.html
  3. #source ~/.bash_profile
  4. source /etc/zprofile
  5. #! /bin/bash
  6. Res_DirRoot=""
  7. if [ $USEENCRTY -eq 1 ]; then
  8. Res_DirRoot=${SRCROOT}"/pack"
  9. rm -rf "$Res_DirRoot"
  10. mkdir "$Res_DirRoot"
  11. else
  12. Res_DirRoot=$BUILT_PRODUCTS_DIR"/"$PRODUCT_NAME".app/${ASSETSSUFIX}";
  13. #add by yuntao @2020-11-19
  14. rm -rf "${Res_DirRoot}/bin"
  15. fi
  16. echo "Res_DirRoot: ${Res_DirRoot}";
  17. Res_Dir="${Res_DirRoot}/res"
  18. rm -rf "$Res_Dir"
  19. mkdir "$Res_Dir"
  20. echo "Res_Dir: ${Res_Dir}";
  21. cd ../Resources/scripts;
  22. if [ $PLATFORM -eq 1 ]; then
  23. PYTHONIOENCODING=utf-8 python3 copy_2_ios.py $Res_Dir
  24. echo "Res_Py: copy_2_ios.py";
  25. else
  26. PYTHONIOENCODING=utf-8 python3 copy_2_mac.py $Res_Dir
  27. echo "Res_Py: copy_2_mac.py";
  28. fi
  29. xattr -rc "${Res_DirRoot}"