forked from koffeeMist/necromancy-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
release.cmd
17 lines (16 loc) · 842 Bytes
/
release.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
REM https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish?tabs=netcore2x
SET /p VERSION=<necromancy.version
SET RUNTIMES=win-x86 win-x64 linux-x64 osx-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 Necromancy.Cli\Necromancy.Cli.csproj /p:Version=%VERSION% --runtime %%x --configuration Release --output ./publish/%%x-%VERSION%/Server
REM ReleaseFiles
xcopy .\ReleaseFiles .\publish\%%x-%VERSION%\
REM PACK
if exist %ZIP% %ZIP% -ttar a dummy .\publish\%%x-%VERSION%\* -so | %ZIP% -si -tgzip a .\release\%%x-%VERSION%.tar.gz
))
REM dotnet publish Necromancy.Cli\Necromancy.Cli.csproj /p:Version=1.00 --runtime win-x64 --configuration Release --output ./publish/win-x64-1.00/Server