Updates formatting rules (#199)
This commit is contained in:
parent
8caf5a422f
commit
1f651992d7
1752 changed files with 203904 additions and 203367 deletions
60
publish.cmd
Normal file
60
publish.cmd
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
#!/usr/bin/env bash
|
||||
dotnet restore --force-evaluate
|
||||
|
||||
:<<"::SHELLSCRIPT"
|
||||
@ECHO OFF
|
||||
GOTO :CMDSCRIPT
|
||||
|
||||
::SHELLSCRIPT
|
||||
if [[ $(uname) = "Darwin" ]]; then
|
||||
r="-r osx-x64"
|
||||
elif [[ -f /etc/os-release ]]; then
|
||||
. /etc/os-release
|
||||
r="-r ${NAME,,}.$VERSION_ID-x64"
|
||||
fi
|
||||
|
||||
if [[ -z $2 ]] || [[ ${2,,} = "core" ]]; then
|
||||
f="-f netcoreapp3.1"
|
||||
else
|
||||
f="-f net5.0"
|
||||
fi
|
||||
|
||||
if [[ -z $3 ]]; then
|
||||
c="-c Release"
|
||||
else
|
||||
c="-c ${3^}"
|
||||
fi
|
||||
|
||||
echo dotnet publish ${c} ${r} ${f} --no-restore --self-contained=false -o Distribution Projects/Server/Server.csproj
|
||||
dotnet publish ${c} ${r} ${f} --no-restore --self-contained=false -o Distribution Projects/Server/Server.csproj
|
||||
echo dotnet publish ${c} ${r} ${f} --no-restore --self-contained=false -o Distribution/Assemblies Projects/UOContent/UOContent.csproj
|
||||
dotnet publish ${c} ${r} ${f} --no-restore --self-contained=false -o Distribution/Assemblies Projects/UOContent/UOContent.csproj
|
||||
exit $?
|
||||
|
||||
:CMDSCRIPT
|
||||
IF "%~2" == "" (
|
||||
SET f=-f netcoreapp3.1
|
||||
) ELSE (
|
||||
IF "%~2" == "core" (
|
||||
SET f=-f netcoreapp3.1
|
||||
) ELSE (
|
||||
SET f=-f net5.0
|
||||
)
|
||||
)
|
||||
|
||||
IF "%~3" == "" or "%~3" == "release" (
|
||||
SET c=-c Release
|
||||
) ELSE (
|
||||
SET c=-c Debug
|
||||
)
|
||||
|
||||
IF "%~1" == "" (
|
||||
SET r=-r win-x64
|
||||
) ELSE (
|
||||
SET r=-r %~1-x64
|
||||
)
|
||||
|
||||
echo dotnet publish %c% %r% %f% --no-restore --self-contained=false -o Distribution Projects\Server\Server.csproj
|
||||
dotnet publish %c% %r% %f% --no-restore --self-contained=false -o Distribution Projects\Server\Server.csproj
|
||||
echo dotnet publish %c% %r% %f% --no-restore --self-contained=false -o Distribution\Assemblies Projects\UOContent\UOContent.csproj
|
||||
dotnet publish %c% %r% %f% --no-restore --self-contained=false -o Distribution\Assemblies Projects\UOContent\UOContent.csproj
|
||||
Loading…
Add table
Add a link
Reference in a new issue