mirror of
https://github.com/sebastian-heinz/Arrowgene.DragonsDogmaOnline
synced 2026-08-03 11:12:41 -04:00
17 lines
No EOL
714 B
Batchfile
17 lines
No EOL
714 B
Batchfile
REM https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish?tabs=netcore2x
|
|
SET /p VERSION=<ddon.version
|
|
SET RUNTIMES=win-x64
|
|
SET ZIP="C:\Program Files\7-Zip\7z.exe"
|
|
mkdir .\release
|
|
(for %%x in (%RUNTIMES%) do (
|
|
REM Clean
|
|
if exist .\publish\%%x-%VERSION%\ RMDIR /S /Q .\publish\%%x-%VERSION%\
|
|
REM Server
|
|
dotnet publish Arrowgene.Ddon.Cli\Arrowgene.Ddon.Cli.csproj /p:Version=%VERSION% --runtime %%x --self-contained --configuration Release --output ./publish/%%x-%VERSION%/Server
|
|
REM ReleaseFiles
|
|
xcopy .\ReleaseFiles .\publish\%%x-%VERSION%\
|
|
REM PACK
|
|
REM if exist %ZIP% %ZIP% -ttar a dummy .\publish\%%x-%VERSION%\* -so | %ZIP% -si -tgzip a .\release\%%x-%VERSION%.tar.gz
|
|
))
|
|
REM keep console open
|
|
cmd |