sers-publish(netcoreapp2.1).bat 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. set netVersion=netcoreapp2.1
  2. echo publish sers
  3. echo dotnet version: %netVersion%
  4. :: 1 publish
  5. cd /d ../../
  6. echo 'publish Gateway'
  7. cd /d Gateway\App.Gateway
  8. dotnet build --configuration Release
  9. dotnet publish --configuration Release --output ..\..\Doc\Publish\SersPublish\%netVersion%\Gateway
  10. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  11. cd /d ../../
  12. echo 'publish Gover'
  13. cd /d ServiceCenter\App.Gover.Gateway
  14. dotnet build --configuration Release
  15. dotnet publish --configuration Release --output ..\..\Doc\Publish\SersPublish\%netVersion%\Gover
  16. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  17. cd /d ../../
  18. echo 'publish ServiceCenter'
  19. cd /d ServiceCenter\App.ServiceCenter
  20. dotnet build --configuration Release
  21. dotnet publish --configuration Release --output ..\..\Doc\Publish\SersPublish\%netVersion%\ServiceCenter
  22. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  23. cd /d ../../
  24. echo 'publish Demo'
  25. cd /d ServiceStation\Demo\SersLoader\Did.SersLoader.Demo
  26. dotnet build --configuration Release
  27. dotnet publish --configuration Release --output ..\..\..\..\Doc\Publish\SersPublish\%netVersion%\Demo
  28. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  29. cd /d ../../../../
  30. echo 'publish Robot'
  31. cd /d ServiceStation\Demo\StressTest\App.Robot.Station
  32. dotnet build --configuration Release
  33. dotnet publish --configuration Release --output ..\..\..\..\Doc\Publish\SersPublish\%netVersion%\Robot
  34. @if errorlevel 1 (echo . & echo . & echo 出错,请排查!& pause)
  35. cd /d ../../../../
  36. cd /d Doc\Publish
  37. :: 2 copy Sers Static
  38. ::(x.1)
  39. @echo "copy bat"
  40. xcopy "..\PublishFile\SersPublish" "SersPublish\%netVersion%" /e /i /r /y
  41. ::(x.2)copy xml
  42. @echo "copy ServiceCenter xml "
  43. xcopy "..\..\ServiceCenter\App.ServiceCenter\bin\Release\%netVersion%\*.xml" "SersPublish\%netVersion%\ServiceCenter" /i /r /y
  44. @echo "copy Robot xml"
  45. xcopy "..\..\ServiceStation\Demo\StressTest\App.Robot.Station\bin\Release\%netVersion%\*.xml" "SersPublish\%netVersion%\Robot" /i /r /y
  46. @echo "copy Demo xml"
  47. xcopy "..\..\ServiceStation\Demo\SersLoader\Did.SersLoader.Demo\bin\Release\%netVersion%\*.xml" "SersPublish\%netVersion%\Demo" /i /r /y
  48. cd /d ..\cmd
  49. echo 'publish sers succeed!'
  50. echo 'publish sers succeed!'
  51. echo 'publish sers succeed!'