diff --git a/EnemizerCLI.Core/publish - debug.bat b/EnemizerCLI.Core/publish - debug.bat index 124ba74..dfbee39 100644 --- a/EnemizerCLI.Core/publish - debug.bat +++ b/EnemizerCLI.Core/publish - debug.bat @@ -1,7 +1,25 @@ @echo off setlocal + PATH="C:\Program Files\7-Zip";%PATH% set MSBUILDSINGLELOADCONTEXT=1 - dotnet publish --framework netcoreapp2.0 -c Debug --self-contained --runtime win-x64 - dotnet publish --framework netcoreapp2.0 -c Debug --self-contained --runtime osx.10.12-x64 - dotnet publish --framework netcoreapp2.0 -c Debug --self-contained --runtime ubuntu.16.04-x64 + + set FRAMEWORK=netcoreapp3.1 + set RELEASEBUILD=Debug + + set WINDOWSVERSION=win-x64 + set MACVERSION=osx.10.12-x64 + set LINUXVERSION=ubuntu.16.04-x64 + + dotnet publish --framework %FRAMEWORK% -c %RELEASEBUILD% --self-contained --runtime %WINDOWSVERSION% -p:PublishTrimmed=true + dotnet publish --framework %FRAMEWORK% -c %RELEASEBUILD% --self-contained --runtime %MACVERSION% -p:PublishTrimmed=true + dotnet publish --framework %FRAMEWORK% -c %RELEASEBUILD% --self-contained --runtime %LINUXVERSION% -p:PublishTrimmed=true + + 7z a .\bin\%RELEASEBUILD%\%WINDOWSVERSION%.7z .\bin\%RELEASEBUILD%\%FRAMEWORK%\%WINDOWSVERSION%\publish\* + 7z a .\bin\%RELEASEBUILD%\%MACVERSION%.7z .\bin\%RELEASEBUILD%\%FRAMEWORK%\%MACVERSION%\publish\* + 7z a .\bin\%RELEASEBUILD%\%LINUXVERSION%.7z .\bin\%RELEASEBUILD%\%FRAMEWORK%\%LINUXVERSION%\publish\* + 7z a -tzip .\bin\%RELEASEBUILD%\%WINDOWSVERSION%.zip .\bin\%RELEASEBUILD%\%FRAMEWORK%\%WINDOWSVERSION%\publish\* + 7z a -tzip .\bin\%RELEASEBUILD%\%MACVERSION%.zip .\bin\%RELEASEBUILD%\%FRAMEWORK%\%MACVERSION%\publish\* + 7z a -tzip .\bin\%RELEASEBUILD%\%LINUXVERSION%.zip .\bin\%RELEASEBUILD%\%FRAMEWORK%\%LINUXVERSION%\publish\* + + pause endlocal diff --git a/EnemizerCLI.Core/publish.bat b/EnemizerCLI.Core/publish.bat index ff24027..329ed4e 100644 --- a/EnemizerCLI.Core/publish.bat +++ b/EnemizerCLI.Core/publish.bat @@ -1,7 +1,25 @@ @echo off setlocal + PATH="C:\Program Files\7-Zip";%PATH% set MSBUILDSINGLELOADCONTEXT=1 - dotnet publish --framework netcoreapp2.0 -c Release --self-contained --runtime win-x64 -p:PublishTrimmed=true - dotnet publish --framework netcoreapp2.0 -c Release --self-contained --runtime osx.10.12-x64 -p:PublishTrimmed=true - dotnet publish --framework netcoreapp2.0 -c Release --self-contained --runtime ubuntu.16.04-x64 -p:PublishTrimmed=true + + set FRAMEWORK=netcoreapp3.1 + set RELEASEBUILD=Release + + set WINDOWSVERSION=win-x64 + set MACVERSION=osx.10.12-x64 + set LINUXVERSION=ubuntu.16.04-x64 + + dotnet publish --framework %FRAMEWORK% -c %RELEASEBUILD% --self-contained --runtime %WINDOWSVERSION% -p:PublishTrimmed=true + dotnet publish --framework %FRAMEWORK% -c %RELEASEBUILD% --self-contained --runtime %MACVERSION% -p:PublishTrimmed=true + dotnet publish --framework %FRAMEWORK% -c %RELEASEBUILD% --self-contained --runtime %LINUXVERSION% -p:PublishTrimmed=true + + 7z a .\bin\%RELEASEBUILD%\%WINDOWSVERSION%.7z .\bin\%RELEASEBUILD%\%FRAMEWORK%\%WINDOWSVERSION%\publish\* + 7z a .\bin\%RELEASEBUILD%\%MACVERSION%.7z .\bin\%RELEASEBUILD%\%FRAMEWORK%\%MACVERSION%\publish\* + 7z a .\bin\%RELEASEBUILD%\%LINUXVERSION%.7z .\bin\%RELEASEBUILD%\%FRAMEWORK%\%LINUXVERSION%\publish\* + 7z a -tzip .\bin\%RELEASEBUILD%\%WINDOWSVERSION%.zip .\bin\%RELEASEBUILD%\%FRAMEWORK%\%WINDOWSVERSION%\publish\* + 7z a -tzip .\bin\%RELEASEBUILD%\%MACVERSION%.zip .\bin\%RELEASEBUILD%\%FRAMEWORK%\%MACVERSION%\publish\* + 7z a -tzip .\bin\%RELEASEBUILD%\%LINUXVERSION%.zip .\bin\%RELEASEBUILD%\%FRAMEWORK%\%LINUXVERSION%\publish\* + + pause endlocal \ No newline at end of file