~export.bat 519 B

123456789101112131415161718
  1. @echo off
  2. set PRO_PATH=%~dp0..\..\..\proj_laya
  3. set TOOL_PATH=%~dp0..\..\..\_tools\ExcelTool
  4. set OUT_PATH=%~dp0\OutPut
  5. del /q /s %OUT_PATH%\*.*
  6. node %TOOL_PATH%\src\main.js %~dp0 %PRO_PATH%
  7. del /q /s %PRO_PATH%\bin\res\json\*.*
  8. del /q /s %PRO_PATH%\laya\assets\res\json\*.*
  9. xcopy %OUT_PATH%\json %PRO_PATH%\bin\res\json /s /y /i
  10. xcopy %OUT_PATH%\json %PRO_PATH%\laya\assets\res\json /s /y /i
  11. ::xcopy %OUT_PATH%\Data.json %PRO_PATH%\bin\res\json /s /y /i
  12. xcopy %OUT_PATH%\Data.d.ts %PRO_PATH%\libs /s /y /i
  13. pause
  14. exit