b_tsc_all.bat 791 B

123456789101112131415161718192021222324252627282930313233
  1. @echo off
  2. echo.
  3. ::取游戏名字列表
  4. call b_game_names.bat
  5. echo gameNameList: %game_names%
  6. ::在dao循环中要对变量再编辑的du话,要启用延zhi迟变量的设置,用setlocal命令,具体dao的你输入版setlocal /?看帮助,它一般是跟权endlocal配对使用
  7. SETLOCAL ENABLEDELAYEDEXPANSION
  8. for %%i in (%game_names%) do (
  9. if defined tscPaths (
  10. set tscPaths=!tscPaths! ..\..\game\%%i\main\src\core
  11. )else (
  12. set tscPaths=..\..\game\%%i\main\src\core
  13. )
  14. ::set tscPaths=!tscPaths! ..\..\game\%%i\main\src\ttGame
  15. ::set tscPaths=!tscPaths! ..\..\game\%%i\main\src\trGame
  16. set tscPaths=!tscPaths! ..\..\game\%%i\main\src\webGame
  17. )
  18. echo tsc -b !tscPaths!
  19. tsc -b !tscPaths!
  20. ::tsc -b core Fruit Legend DDZ Glory Dragon LHD
  21. ENDLOCAL
  22. echo tsc complete
  23. pause