|
@@ -1,7 +1,5 @@
|
|
|
set -e
|
|
|
|
|
|
-# bash 30.nuget-build.sh
|
|
|
-
|
|
|
|
|
|
#---------------------------------------------------------------------
|
|
|
#(x.1)参数
|
|
@@ -9,55 +7,30 @@ args_="
|
|
|
|
|
|
export codePath=/root/temp/svn/dotnet
|
|
|
|
|
|
-
|
|
|
# "
|
|
|
|
|
|
-
|
|
|
-export netVersion=netcoreapp2.1
|
|
|
|
|
|
|
|
|
-#----------------------------------------------
|
|
|
-echo "(x.2)dotnet-publish"
|
|
|
-echo "dotnet version: ${netVersion}"
|
|
|
-
|
|
|
-docker run -i --rm \
|
|
|
---env LANG=C.UTF-8 \
|
|
|
--v $codePath:/root/code \
|
|
|
-serset/dotnet:6.0-sdk \
|
|
|
-bash -c "
|
|
|
-
|
|
|
-echo 'publish Gateway'
|
|
|
-cd /root/code/Gateway/App.Gateway
|
|
|
-dotnet build --configuration Release
|
|
|
-dotnet publish --configuration Release --output /root/code/Doc/Publish/SersPublish/${netVersion}/Gateway
|
|
|
-
|
|
|
-echo 'publish Gover'
|
|
|
-cd /root/code/ServiceCenter/App.Gover.Gateway
|
|
|
-dotnet build --configuration Release
|
|
|
-dotnet publish --configuration Release --output /root/code/Doc/Publish/SersPublish/${netVersion}/Gover
|
|
|
+#----------------------------------------------
|
|
|
+echo "(x.2)publish netcoreapp2.1"
|
|
|
|
|
|
-echo 'publish ServiceCenter'
|
|
|
-cd /root/code/ServiceCenter/App.ServiceCenter
|
|
|
-dotnet build --configuration Release
|
|
|
-dotnet publish --configuration Release --output /root/code/Doc/Publish/SersPublish/${netVersion}/ServiceCenter
|
|
|
+export netVersion=netcoreapp2.1
|
|
|
+bash 41.dotnet-publish-by-netVersion.sh;
|
|
|
|
|
|
-echo 'publish Demo'
|
|
|
-cd /root/code/ServiceStation/Demo/SersLoader/Did.SersLoader.Demo
|
|
|
-dotnet build --configuration Release
|
|
|
-dotnet publish --configuration Release --output /root/code/Doc/Publish/SersPublish/${netVersion}/Demo
|
|
|
|
|
|
-echo 'publish Robot'
|
|
|
-cd /root/code/ServiceStation/Demo/StressTest/App.Robot.Station
|
|
|
-dotnet build --configuration Release
|
|
|
-dotnet publish --configuration Release --output /root/code/Doc/Publish/SersPublish/${netVersion}/Robot
|
|
|
-
|
|
|
-"
|
|
|
|
|
|
|
|
|
-#----------------------------------------------
|
|
|
-echo "(x.3)dotnet-copy file"
|
|
|
+#----------------------------------------------
|
|
|
+echo "(x.3)publish net6.0"
|
|
|
|
|
|
+#修改csproj文件中的版本号为6.0
|
|
|
+cd $codePath
|
|
|
+sed -i 's/netcoreapp2.1/net6.0/g' `grep -a 'netcoreapp2.1' . -rl --include *.csproj`
|
|
|
|
|
|
-cp $codePath
|
|
|
+export netVersion=net6.0
|
|
|
+bash 41.dotnet-publish-by-netVersion.sh;
|
|
|
|
|
|
|
|
|
+#修改csproj文件中的版本号为2.1
|
|
|
+cd $codePath
|
|
|
+sed -i 's/net6.0/netcoreapp2.1/g' `grep -a 'net6.0' . -rl --include *.csproj`
|