release.bat 613 B

1234567891011121314151617181920212223242526272829303132333435
  1. @echo off
  2. :: 目标代码仓库
  3. set pub="E:\svn\lolbox\lolboxServer\staticPub\v3.1"
  4. :: 删除产出路径
  5. if exist .\v3.1\ (
  6. rd .\v3.1 /s /q
  7. if %errorlevel% == 0 (
  8. echo old publish director deletel.
  9. )
  10. )
  11. :: 执行fis编译
  12. call fis3 release -d .
  13. :: 上传产出文件
  14. if %errorlevel% == 0 (
  15. :: 更新svn
  16. echo update publish svn.
  17. call svn update %pub%
  18. :: 上传文件
  19. echo upload publish files.
  20. rd %pub% /s /q
  21. md %pub%
  22. xcopy .\v3.1\* %pub%\* /s /e
  23. call svn commit E:\svn\lolbox\lolboxServer\staticPub\ -m "lol auto release."
  24. echo src publish finish.
  25. )
  26. :: 清除产出文件
  27. rd .\v3.1 /s /q