b_copy_one.bat 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. @echo off
  2. set game_name=%1
  3. set project_path=..\..\game\%game_name%\main
  4. set tt_open_path =..\..\game\%game_name%\tt_openDataContext
  5. set libs_path=..\..\game\_libs\gamelibs_event
  6. set tt_libs_path=..\..\game\_libs\open_libs\tt
  7. echo.
  8. ::从类库复制BaseConfig.js到项目
  9. echo copy BaseConfig.js
  10. copy %libs_path%\bin\BaseConfig.js %project_path%\bin
  11. echo.
  12. ::从类库复制.d.ts到项目
  13. echo copy libs .d.ts
  14. xcopy %libs_path%\libs %project_path%\libs /s /e /y
  15. echo.
  16. ::从类库复制core\base到项目
  17. echo copy core\base
  18. xcopy %libs_path%\src\core\base %project_path%\src\core\base /s /e /y
  19. @REM echo.
  20. @REM ::从类库复制core\Declare.ts到项目
  21. @REM echo copy core\Declare.ts
  22. @REM xcopy %libs_path%\src\core\Declare.ts %project_path%\src\core /s /e /y
  23. echo.
  24. ::ttGame\base到项目
  25. echo copy ttGame\base
  26. xcopy %libs_path%\src\ttGame\base %project_path%\src\ttGame\base /s /e /y
  27. echo.
  28. ::webGame\base到项目
  29. echo copy webGame\base
  30. xcopy %libs_path%\src\webGame\base %project_path%\src\webGame\base /s /e /y
  31. @REM echo.
  32. @REM ::复制字节开放域类库到开放域项目
  33. @REM echo copy lib openDataContext
  34. @REM xcopy %tt_libs_path%\release\wxgame %tt_open_path%\release\wxgame /s /e /y
  35. @REM
  36. @REM echo.
  37. @REM ::复制字节开放域发布的js到主域bin\openDataContext
  38. @REM echo copy js to MainProj
  39. @REM xcopy %tt_open_path%\release\wxgame %tt_main_path%\bin\openDataContext /s /e /y
  40. @REM
  41. @REM echo.
  42. @REM ::复制字节开放域用到的资源到主域bin\res\open或bin\res\atlas\res\open(合图)
  43. @REM echo copy res to MainProj
  44. @REM xcopy %tt_open_path%\bin\res\open %tt_main_path%\bin\res\open /s /e /y
  45. @REM xcopy %tt_open_path%\bin\res\atlas\res\open %tt_main_path%\res\atlas\res\open /s /e /y
  46. @REM
  47. @REM echo copy complete
  48. ::pause
  49. exit