publish sers(netcoreapp2.1).bat 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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 PublishFile"
  40. xcopy "..\PublishFile\SersPublish" "SersPublish\%netVersion%" /e /i /r /y
  41. ::(x.2)ServiceCenter
  42. @echo "copy ServiceCenter wwwroot"
  43. xcopy "..\..\ServiceCenter\App.Gover.Gateway\wwwroot" "SersPublish\%netVersion%\ServiceCenter\wwwroot" /e /i /r /y
  44. @echo "copy xml of ServiceCenter"
  45. xcopy "..\..\ServiceCenter\App.ServiceCenter\bin\Release\%netVersion%\*.xml" "SersPublish\%netVersion%\ServiceCenter" /i /r /y
  46. ::(x.3)Gover
  47. @echo "copy Gover wwwroot"
  48. xcopy "..\..\ServiceCenter\App.Gover.Gateway\wwwroot" "SersPublish\%netVersion%\Gover\wwwroot" /e /i /r /y
  49. ::(x.4)Robot
  50. @echo "copy Robot wwwroot"
  51. xcopy "..\..\ServiceStation\Demo\StressTest\App.Robot.Station\wwwroot" "SersPublish\%netVersion%\Robot\wwwroot" /e /i /r /y
  52. @echo "copy xml of Robot"
  53. xcopy "..\..\ServiceStation\Demo\StressTest\App.Robot.Station\bin\Release\%netVersion%\*.xml" "SersPublish\%netVersion%\Robot" /i /r /y
  54. ::(x.5)
  55. @echo "copy xml of Demo"
  56. xcopy "..\..\ServiceStation\Demo\SersLoader\Did.SersLoader.Demo\bin\Release\%netVersion%\*.xml" "SersPublish\%netVersion%\Demo" /i /r /y
  57. echo 'publish sers succeed!'
  58. echo 'publish sers succeed!'
  59. echo 'publish sers succeed!'