Adds CentOS to the CI/CD (#302)
This commit is contained in:
parent
013f333898
commit
03f7398655
2 changed files with 28 additions and 6 deletions
12
publish.cmd
12
publish.cmd
|
|
@ -1,5 +1,3 @@
|
|||
dotnet restore --force-evaluate
|
||||
|
||||
:<<"::SHELLSCRIPT"
|
||||
@ECHO OFF
|
||||
GOTO :CMDSCRIPT
|
||||
|
|
@ -25,6 +23,13 @@ else
|
|||
config="-c Release"
|
||||
fi
|
||||
|
||||
if [[ $os == *'centos'* || $os == *'rhel'* ]]; then
|
||||
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
|
||||
fi
|
||||
|
||||
echo dotnet restore --force-evaluate
|
||||
dotnet restore --force-evaluate
|
||||
|
||||
echo dotnet publish ${config} ${os} -f net5.0 --no-restore --self-contained=false -o Distribution Projects/Server/Server.csproj
|
||||
dotnet publish ${config} ${os} -f net5.0 --no-restore --self-contained=false -o Distribution Projects/Server/Server.csproj
|
||||
echo dotnet publish ${config} ${os} -f net5.0 --no-restore --self-contained=false -o Distribution/Assemblies Projects/UOContent/UOContent.csproj
|
||||
|
|
@ -45,6 +50,9 @@ IF "%~2" == "" (
|
|||
SET os=-r %~1-x64
|
||||
)
|
||||
|
||||
echo dotnet restore --force-evaluate
|
||||
dotnet restore --force-evaluate
|
||||
|
||||
echo dotnet publish %config% %os% -f net5.0 --no-restore --self-contained=false -o Distribution Projects\Server\Server.csproj
|
||||
dotnet publish %config% %os% -f net5.0 --no-restore --self-contained=false -o Distribution Projects\Server\Server.csproj
|
||||
echo dotnet publish %config% %os% -f net5.0 --no-restore --self-contained=false -o Distribution\Assemblies Projects\UOContent\UOContent.csproj
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue