Cleans up publishing/building

This commit is contained in:
Kamron Batman 2020-05-06 21:05:43 -07:00
parent 2347533b9c
commit e5d25559e9
No known key found for this signature in database
GPG key ID: 5C9DFD15804B6BB8
20 changed files with 62 additions and 137 deletions

View file

@ -1,4 +1,16 @@
dotnet build -c Release Projects/Argon2/Argon2.csproj
dotnet pack -o ./packages Projects/Argon2/Argon2.csproj
dotnet build -c Release Projects/ZLib/ZLib.csproj
dotnet pack -o ./packages Projects/ZLib/ZLib.csproj
:<<"::SHELLSCRIPT"
@ECHO OFF
GOTO :CMDSCRIPT
::SHELLSCRIPT
dotnet build -c Release Projects/Argon2/Argon2.csproj
dotnet pack -o packages Projects/Argon2/Argon2.csproj
dotnet build -c Release Projects/ZLib/ZLib.csproj
dotnet pack -o packages Projects/ZLib/ZLib.csproj
exit $?
:CMDSCRIPT
ECHO dotnet build -c Release Projects\Argon2\Argon2.csproj
ECHO dotnet pack -o packages Projects\Argon2\Argon2.csproj
ECHO dotnet build -c Release Projects\ZLib\ZLib.csproj
ECHO dotnet pack -o packages Projects\ZLib\ZLib.csproj

View file

@ -1,4 +1 @@
dotnet build -c Release Projects/Argon2/Argon2.csproj
dotnet pack -o ./packages Projects/Argon2/Argon2.csproj
dotnet build -c Release Projects/ZLib/ZLib.csproj
dotnet pack -o ./packages Projects/ZLib/ZLib.csproj
Tools/build-native-libraries.cmd "$@"

View file

@ -1,38 +0,0 @@
del /f .\Projects\*\obj
del /f .\Distribution\Assemblies\BouncyCastle.Crypto.dll
del /f .\Distribution\Assemblies\MailKit.dll
del /f .\Distribution\Assemblies\Microsoft.AspNetCore.Connections.Abstractions.dll
del /f .\Distribution\Assemblies\Microsoft.AspNetCore.Http.Features.dll
del /f .\Distribution\Assemblies\Microsoft.Extensions.Configuration.Abstractions.dll
del /f .\Distribution\Assemblies\Microsoft.Extensions.DependencyInjection.Abstractions.dll
del /f .\Distribution\Assemblies\Microsoft.Extensions.FileProviders.Abstractions.dll
del /f .\Distribution\Assemblies\Microsoft.Extensions.Hosting.Abstractions.dll
del /f .\Distribution\Assemblies\Microsoft.Extensions.Logging.Abstractions.dll
del /f .\Distribution\Assemblies\Microsoft.Extensions.Primitives.dll
del /f .\Distribution\Assemblies\MimeKit.dll
del /f .\Distribution\Assemblies\System.IO.Pipelines.dll
del /f .\Distribution\libdrng.dll
del /f .\Distribution\libuv.dll
del /f .\Distribution\libuv.so
del /f .\Distribution\Microsoft.AspNetCore.Connections.Abstractions.dll
del /f .\Distribution\Microsoft.AspNetCore.Http.Features.dll
del /f .\Distribution\Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.dll
del /f .\Distribution\Microsoft.Extensions.Configuration.Abstractions.dll
del /f .\Distribution\Microsoft.Extensions.DependencyInjection.Abstractions.dll
del /f .\Distribution\Microsoft.Extensions.FileProviders.Abstractions.dll
del /f .\Distribution\Microsoft.Extensions.Hosting.Abstractions.dll
del /f .\Distribution\Microsoft.Extensions.Logging.Abstractions.dll
del /f .\Distribution\Microsoft.Extensions.Options.dll
del /f .\Distribution\Microsoft.Extensions.Primitives.dll
del /f .\Distribution\ModernUO
del /f .\Distribution\ModernUO.deps.json
del /f .\Distribution\ModernUO.dll
del /f .\Distribution\ModernUO.dll.config
del /f .\Distribution\ModernUO.exe
del /f .\Distribution\ModernUO.pdb
del /f .\Distribution\ModernUO.runtimeconfig.dev.json
del /f .\Distribution\ModernUO.runtimeconfig.json
del /f .\Distribution\System.IO.Pipelines.dll
del /f .\Distribution\zlib.dll

View file

@ -1,44 +0,0 @@
rm -rf Projects/*/obj
rm -rf Projects/*/bin
rm -f Distribution/Assemblies/BouncyCastle.Crypto.dll
rm -f Distribution/Assemblies/MailKit.dll
rm -f Distribution/Assemblies/Microsoft.AspNetCore.Connections.Abstractions.dll
rm -f Distribution/Assemblies/Microsoft.AspNetCore.Http.Features.dll
rm -f Distribution/Assemblies/Microsoft.Extensions.Configuration.Abstractions.dll
rm -f Distribution/Assemblies/Microsoft.Extensions.DependencyInjection.Abstractions.dll
rm -f Distribution/Assemblies/Microsoft.Extensions.FileProviders.Abstractions.dll
rm -f Distribution/Assemblies/Microsoft.Extensions.Hosting.Abstractions.dll
rm -f Distribution/Assemblies/Microsoft.Extensions.Logging.Abstractions.dll
rm -f Distribution/Assemblies/Microsoft.Extensions.Primitives.dll
rm -f Distribution/Assemblies/MimeKit.dll
rm -f Distribution/Assemblies/System.IO.Pipelines.dll
rm -f Distribution/Assemblies/Argon2.Bindings.dll
rm -f Distribution/Assemblies/libargon2.so
rm -f Distribution/Assemblies/libargon2.dylib
rm -f Distribution/Assemblies/argon2.dll
rm -f Distribution/libdrng.dll
rm -f Distribution/libuv.dll
rm -f Distribution/libuv.so
rm -f Distribution/libuv.dylib
rm -f Distribution/Microsoft.AspNetCore.Connections.Abstractions.dll
rm -f Distribution/Microsoft.AspNetCore.Http.Features.dll
rm -f Distribution/Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.dll
rm -f Distribution/Microsoft.Extensions.Configuration.Abstractions.dll
rm -f Distribution/Microsoft.Extensions.DependencyInjection.Abstractions.dll
rm -f Distribution/Microsoft.Extensions.FileProviders.Abstractions.dll
rm -f Distribution/Microsoft.Extensions.Hosting.Abstractions.dll
rm -f Distribution/Microsoft.Extensions.Logging.Abstractions.dll
rm -f Distribution/Microsoft.Extensions.Options.dll
rm -f Distribution/Microsoft.Extensions.Primitives.dll
rm -f Distribution/ModernUO
rm -f Distribution/ModernUO.deps.json
rm -f Distribution/ModernUO.dll
rm -f Distribution/ModernUO.dll.config
rm -f Distribution/ModernUO.exe
rm -f Distribution/ModernUO.pdb
rm -f Distribution/ModernUO.runtimeconfig.dev.json
rm -f Distribution/ModernUO.runtimeconfig.json
rm -f Distribution/System.IO.Pipelines.dll
rm -f Distribution/zlib.dll

View file

@ -1,2 +0,0 @@
dotnet build -c Debug -r linux-x64 Projects/Argon2/Argon2.csproj
dotnet publish -c Debug -r linux-x64 --self-contained=false

View file

@ -1,2 +0,0 @@
dotnet build -c Debug -r linux-x64 Projects/Argon2/Argon2.csproj
dotnet publish -c Debug -r linux-x64 --self-contained=false

View file

@ -1,2 +0,0 @@
dotnet build -c Release -r linux-x64 Projects/Argon2/Argon2.csproj
dotnet publish -c Release -r linux-x64 --self-contained=false

View file

@ -1,2 +0,0 @@
dotnet build -c Release -r linux-x64 Projects/Argon2/Argon2.csproj
dotnet publish -c Release -r linux-x64 --self-contained=false

View file

@ -1,2 +0,0 @@
dotnet build -c Debug -r osx-x64 Projects/Argon2/Argon2.csproj
dotnet publish -c Debug -r osx-x64 --self-contained=false

View file

@ -1,2 +0,0 @@
dotnet build -c Debug -r osx-x64 Projects/Argon2/Argon2.csproj
dotnet publish -c Debug -r osx-x64 --self-contained=false

View file

@ -1,2 +0,0 @@
dotnet build -c Release -r osx-x64 Projects/Argon2/Argon2.csproj
dotnet publish -c Release -r osx-x64 --self-contained=false

View file

@ -1,2 +0,0 @@
dotnet build -c Release -r osx-x64 Projects/Argon2/Argon2.csproj
dotnet publish -c Release -r osx-x64 --self-contained=false

View file

@ -1,2 +0,0 @@
dotnet build -c Debug -r win-x64 Projects/Argon2/Argon2.csproj
dotnet publish -c Debug -r win-x64 --self-contained=false

View file

@ -1,2 +0,0 @@
dotnet build -c Debug -r win-x64 Projects/Argon2/Argon2.csproj
dotnet publish -c Debug -r win-x64 --self-contained=false

View file

@ -1,2 +0,0 @@
dotnet build -c Release -r win-x64 Projects/Argon2/Argon2.csproj
dotnet publish -c Release -r win-x64 --self-contained=false

View file

@ -1,2 +0,0 @@
dotnet build -c Release -r win-x64 Projects/Argon2/Argon2.csproj
dotnet publish -c Release -r win-x64 --self-contained=false

36
Tools/publish.cmd Executable file
View file

@ -0,0 +1,36 @@
dotnet clean
:<<"::SHELLSCRIPT"
@ECHO OFF
GOTO :CMDSCRIPT
::SHELLSCRIPT
Tools/build-native-libraries.cmd
if [[ -z $2 ]]
then
c="-c Release"
else
c=-c $2
fi
if [[ $2 ]]
then
o=" -r $1-x64"
fi
dotnet publish ${c}${o} --self-contained=false
exit $?
:CMDSCRIPT
Tools\build-native-libraries.cmd
IF "%~2" == "" (
SET c = "-c Release"
) ELSE (
SET c = "-c %~2"
)
IF "%~1" != "" (
SET o = " -r %~1-x64"
)
dotnet publish %c%%o% --self-contained=false

1
Tools/publish.sh Executable file
View file

@ -0,0 +1 @@
Tools/publish.cmd "$@"