ModernUO/Tools/build-native-libraries.cmd
2020-05-24 18:45:30 -07:00

29 lines
609 B
Batchfile
Executable file

:<<"::SHELLSCRIPT"
@ECHO OFF
GOTO :CMDSCRIPT
::SHELLSCRIPT
if [[ -z $2 ]]
then
c="-c Release"
else
c="-c $2"
fi
dotnet build ${c} Projects/Argon2/Argon2.csproj
dotnet pack ${c} -o packages Projects/Argon2/Argon2.csproj
dotnet build ${c} Projects/ZLib/ZLib.csproj
dotnet pack ${c} -o packages Projects/ZLib/ZLib.csproj
exit $?
:CMDSCRIPT
IF "%~1" == "" (
SET c=-c Release
) ELSE (
SET c=-c %~1
)
dotnet build %c% Projects\Argon2\Argon2.csproj
dotnet pack %c% -o packages Projects\Argon2\Argon2.csproj
dotnet build %c% Projects\ZLib\ZLib.csproj
dotnet pack %c% -o packages Projects\ZLib\ZLib.csproj