lith 4 年之前
父節點
當前提交
4d38f51d79

+ 12 - 16
dotnet/Doc/cmd/Sers压缩包-创建.bat

@@ -1,48 +1,44 @@
 ::获取当前版本号
 :: set version=2.1.1.356 
-for /f "tokens=3 delims=><" %%a in ('type ..\Sers\dotnet\Library\Vit\Vit.Core\Vit.Core\Vit.Core.csproj^|findstr "<Version>.*Version"') do set version=%%a
+for /f "tokens=3 delims=><" %%a in ('type ..\..\Library\Vit\Vit.Core\Vit.Core\Vit.Core.csproj^|findstr "<Version>.*Version"') do set version=%%a
 
 
 
 echo ["%version%"]
 
+cd /d ..\Publish
  
+pause
+
 mkdir Publish
 mkdir Publish\Sers%version%
 
-cd /d ..\Sers\dotnet\Doc\Publish
+
 
 echo 1.创建 nuget-Sers.zip
-dotnet ../../../../生成压缩包/FileZip/FileZip.dll zip -i "nuget" -o "../../../../生成压缩包/Publish/Sers%version%/nuget-Sers%version%.zip"
+dotnet ../cmd/FileZip/FileZip.dll zip -i "nuget" -o "Publish/Sers%version%/nuget-Sers%version%.zip"
  
 
 echo 2.创建 SersPublish.zip
-dotnet ../../../../生成压缩包/FileZip/FileZip.dll zip -i "SersPublish" -o "../../../../生成压缩包/Publish/Sers%version%/SersPublish%version%.zip"
+dotnet ../cmd/FileZip/FileZip.dll zip -i "SersPublish" -o "Publish/Sers%version%/SersPublish%version%.zip"
 
 echo 3.创建 CL压测.zip
-dotnet ../../../../生成压缩包/FileZip/FileZip.dll zip -i "CL压测" -o "../../../../生成压缩包/Publish/Sers%version%/CL压测%version%.zip"
+dotnet ../cmd/FileZip/FileZip.dll zip -i "CL压测" -o "Publish/Sers%version%/CL压测%version%.zip"
 
 echo 4.创建 Sers压测.zip
-dotnet ../../../../生成压缩包/FileZip/FileZip.dll zip -i "Sers压测" -o "../../../../生成压缩包/Publish/Sers%version%/Sers压测%version%.zip"
+dotnet ../cmd/FileZip/FileZip.dll zip -i "Sers压测" -o ".Publish/Sers%version%/Sers压测%version%.zip"
 
 
 
 
 echo 5.创建 docker制作镜像Sers.zip
-dotnet ../../../../生成压缩包/FileZip/FileZip.dll zip -i "SersDocker/docker制作镜像Sers" -o "../../../../生成压缩包/Publish/Sers%version%/docker制作镜像Sers%version%.zip"
+dotnet ../cmd/FileZip/FileZip.dll zip -i "SersDocker/docker制作镜像Sers" -o "Publish/Sers%version%/docker制作镜像Sers%version%.zip"
 
 echo 6.创建 docker部署Sers.zip
-dotnet ../../../../生成压缩包/FileZip/FileZip.dll zip -i "SersDocker/docker部署Sers" -o "../../../../生成压缩包/Publish/Sers%version%/docker部署Sers%version%.zip" 
-
-
-cd /d ..\..\..\..\生成压缩包
-
+dotnet ../cmd/FileZip/FileZip.dll zip -i "SersDocker/docker部署Sers" -o "Publish/Sers%version%/docker部署Sers%version%.zip" 
 
 
-
-
- 
-
+cd /d ..\cmd
 
 
 :: pause

+ 3 - 1
dotnet/Doc/Publish/pack SersDocker.bat → dotnet/Doc/cmd/docker-build.bat

@@ -1,4 +1,6 @@
 
+cd /d ../Publish
+
 set netVersion=net6.0
 
 @echo "copy  SersDocker"
@@ -32,7 +34,7 @@ xcopy  "SersPublish\%netVersion%\Gover\appsettings.json" "SersDocker\docker
 xcopy  "SersPublish\%netVersion%\Gover" "SersDocker\dockerÖÆ×÷¾µÏñSers\sers-gover\app" /e /i /r /y
 
 
-
+cd /d ../cmd
 
 
  

+ 1 - 1
dotnet/Doc/cmd/nuget-publish.bat

@@ -1,4 +1,4 @@
-cd /d ../../Library/
+cd /d ../../Library
  
 ::------------------Library
 

+ 2 - 2
dotnet/Doc/cmd/nuget-一键发布并上传.bat

@@ -1,5 +1,5 @@
 
-call "nuget publish.bat"
+call "nuget-publish.bat"
 cd /d "../Publish"
 call "nuget-push to NugetServer.Sers"
 cd /d ../cmd
@@ -7,4 +7,4 @@ cd /d ../cmd
 echo succeed
 echo succeed
 echo succeed
-
+::pause

+ 6 - 4
dotnet/Doc/Publish/publish sers(net6.0).bat → dotnet/Doc/cmd/sers-publish(net6.0).bat

@@ -3,14 +3,13 @@
 set netVersion=net6.0
 
 :: ľ÷ÓĂš¤žß Ěćťťcsproj
-cd ..\..\..\..
-VsTool.exe replace -r --file "App.Gateway.csproj|App.Gover.Gateway.csproj|App.ServiceCenter.csproj|Did.SersLoader.Demo.csproj|App.Robot.Station.csproj" --old "<TargetFramework>netcoreapp2.1</TargetFramework>" --new "<TargetFramework>net6.0</TargetFramework>"
-cd Sers\dotnet\Doc\Publish
+
+VsTool.exe replace -r --path "..\.." --file "App.Gateway.csproj|App.Gover.Gateway.csproj|App.ServiceCenter.csproj|Did.SersLoader.Demo.csproj|App.Robot.Station.csproj" --old "<TargetFramework>netcoreapp2.1</TargetFramework>" --new "<TargetFramework>net6.0</TargetFramework>"
+
 
 echo publish sers
 echo dotnet version: %netVersion%
 
-
 :: 1  publish
 
 cd /d ../../
@@ -103,6 +102,9 @@ cd ..\..\..\..
 VsTool.exe replace -r --file "App.Gateway.csproj|App.Gover.Gateway.csproj|App.ServiceCenter.csproj|Did.SersLoader.Demo.csproj|App.Robot.Station.csproj" --old "<TargetFramework>net6.0</TargetFramework>" --new "<TargetFramework>netcoreapp2.1</TargetFramework>"
 cd Sers\dotnet\Doc\Publish
 
+
+cd /d ..\cmd
+
 echo 'publish sers succeedŁĄ'
 echo 'publish sers succeedŁĄ'
 echo 'publish sers succeedŁĄ'

+ 1 - 1
dotnet/Doc/Publish/publish sers(netcoreapp2.1).bat → dotnet/Doc/cmd/sers-publish(netcoreapp2.1).bat

@@ -95,7 +95,7 @@ xcopy  "..\..\ServiceStation\Demo\StressTest\App.Robot.Station\bin\Release\%netV
 xcopy  "..\..\ServiceStation\Demo\SersLoader\Did.SersLoader.Demo\bin\Release\%netVersion%\*.xml" "SersPublish\%netVersion%\Demo" /i /r /y
 
 
-
+cd /d ..\cmd
 
 
 echo 'publish sers succeed£¡'

+ 6 - 1
dotnet/Doc/Publish/publish sers压测-分布式压测(net6.0).bat → dotnet/Doc/cmd/sers压测-publish分布式压测(net6.0).bat

@@ -1,4 +1,7 @@
 
+cd /d ../Publish
+
+
 set netVersion=net6.0
 set basePath=Sers压测\sers压测-分布式压测%netVersion%
 
@@ -10,4 +13,6 @@ xcopy  "SersPublish\%netVersion%\Robot" "%basePath%\Robot" /e /i /r /y
 
 
 @echo "copy PublishFile"
-xcopy  "..\PublishFile\Sers压测\分布式压测" "%basePath%" /e /i /r /y
+xcopy  "..\PublishFile\Sers压测\分布式压测" "%basePath%" /e /i /r /y
+
+cd /d ../cmd

+ 6 - 1
dotnet/Doc/Publish/publish sers压测-分布式压测(netcoreapp2.1).bat → dotnet/Doc/cmd/sers压测-publish分布式压测(netcoreapp2.1).bat

@@ -1,4 +1,7 @@
 
+cd /d ../Publish
+
+
 set netVersion=netcoreapp2.1
 set basePath=Sers压测\sers压测-分布式压测%netVersion%
 
@@ -10,4 +13,6 @@ xcopy  "SersPublish\%netVersion%\Robot" "%basePath%\Robot" /e /i /r /y
 
 
 @echo "copy PublishFile"
-xcopy  "..\PublishFile\Sers压测\分布式压测" "%basePath%" /e /i /r /y
+xcopy  "..\PublishFile\Sers压测\分布式压测" "%basePath%" /e /i /r /y
+
+cd /d ../cmd

+ 6 - 1
dotnet/Doc/Publish/publish sers压测-单体压测(net6.0).bat → dotnet/Doc/cmd/sers压测-publish单体压测(net6.0).bat

@@ -1,4 +1,6 @@
 
+cd /d ../Publish
+
 set netVersion=net6.0
 set basePath=Sers揤聆\sers揤聆-等极揤聆%netVersion%
 
@@ -21,4 +23,7 @@ xcopy  "SersPublish\%netVersion%\Robot\App.Robot.Station.xml" "%basePath%\Servic
 
 
 @echo "copy PublishFile"
-xcopy  "..\PublishFile\Sers揤聆\等极揤聆" "%basePath%" /e /i /r /y
+xcopy  "..\PublishFile\Sers揤聆\等极揤聆" "%basePath%" /e /i /r /y
+
+
+cd /d ../cmd

+ 5 - 1
dotnet/Doc/Publish/publish sers压测-单体压测(netcoreapp2.1).bat → dotnet/Doc/cmd/sers压测-publish单体压测(netcoreapp2.1).bat

@@ -1,4 +1,6 @@
 
+cd /d ../Publish
+
 set netVersion=netcoreapp2.1
 set basePath=Sers揤聆\sers揤聆-等极揤聆%netVersion%
 
@@ -21,4 +23,6 @@ xcopy  "SersPublish\%netVersion%\Robot\App.Robot.Station.xml" "%basePath%\Servic
 
 
 @echo "copy PublishFile"
-xcopy  "..\PublishFile\Sers揤聆\等极揤聆" "%basePath%" /e /i /r /y
+xcopy  "..\PublishFile\Sers揤聆\等极揤聆" "%basePath%" /e /i /r /y
+
+cd /d ../cmd

+ 2 - 0
dotnet/Doc/Publish/publish CL压测.bat → dotnet/Doc/cmd/sers压测CL-publish.bat

@@ -1,3 +1,4 @@
+
 cd /d ../../
 
 echo 'publish Client'
@@ -24,3 +25,4 @@ echo 'publish CLŃš
 echo 'publish CLŃš˛â succeedŁĄ'
 
 
+cd /d ../cmd

+ 11 - 18
dotnet/Doc/cmd/一键发布上传压缩(net6.0).bat

@@ -1,33 +1,26 @@
 :: start Sers\dotnet\Doc\Publish
 
-cd /d Sers
-call "nuget 一键发布并上传.bat"
-cd /d ..
 
+call "nuget-一键发布并上传.bat"
 
-cd /d Sers\dotnet\Doc\Publish
 
-call "publish sers(netcoreapp2.1).bat"
-call "publish sers压测-单体压测(netcoreapp2.1).bat"
-call "publish sers压测-分布式压测(netcoreapp2.1).bat"
+call "sers-publish(netcoreapp2.1).bat"
+call "sers压测-publish单体压测(netcoreapp2.1).bat"
+call "sers压测-publish分布式压测(netcoreapp2.1).bat"
 
-call "publish sers(net6.0).bat"
-call "publish sers压测-单体压测(net6.0).bat"
-call "publish sers压测-分布式压测(net6.0).bat"
+call "sers-publish(net6.0).bat"
+call "sers压测-publish单体压测(net6.0).bat"
+call "sers压测-publish分布式压测(net6.0).bat"
 
-call "pack SersDocker.bat"
+call "docker-build.bat"
 
 
-call "publish CL压测.bat"
+call "sers压测CL-publish.bat"
 
+ 
 
-cd /d ../../../..
-
+call "Sers压缩包-创建.bat" 
  
-cd /d 生成压缩包
-call "创建Sers压缩包.bat" 
-start Publish
-cd /d ..
 
 echo succeed
 echo succeed

+ 11 - 18
dotnet/Doc/cmd/一键发布上传压缩.bat

@@ -1,33 +1,26 @@
 :: start Sers\dotnet\Doc\Publish
 
-cd /d Sers
-call "nuget 一键发布并上传.bat"
-cd /d ..
 
+call "nuget-一键发布并上传.bat"
 
-cd /d Sers\dotnet\Doc\Publish
 
-call "publish sers(netcoreapp2.1).bat"
-call "publish sers压测-单体压测(netcoreapp2.1).bat"
-call "publish sers压测-分布式压测(netcoreapp2.1).bat"
+call "sers-publish(netcoreapp2.1).bat"
+call "sers压测-publish单体压测(netcoreapp2.1).bat"
+call "sers压测-publish分布式压测(netcoreapp2.1).bat"
 
-:: call "publish sers(net6.0).bat"
-:: call "publish sers压测-单体压测(net6.0).bat"
-:: call "publish sers压测-分布式压测(net6.0).bat"
+:: call "sers-publish(net6.0).bat"
+:: call "sers压测-publish单体压测(net6.0).bat"
+:: call "sers压测-publish分布式压测(net6.0).bat"
 
-:: call "pack SersDocker.bat"
+:: call "docker-build.bat"
 
 
-call "publish CL压测.bat"
+call "sers压测CL-publish.bat"
 
+ 
 
-cd /d ../../../..
-
+call "Sers压缩包-创建.bat" 
  
-cd /d 生成压缩包
-call "创建Sers压缩包.bat" 
-start Publish
-cd /d ..
 
 echo succeed
 echo succeed