18 lines
373 B
Batchfile
18 lines
373 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set "PROJECT=anti-syktsu-proxy.csproj"
|
|
set "RUNTIME=win-x64"
|
|
set "CONFIG=Release"
|
|
set "OUTDIR=publish\%RUNTIME%"
|
|
|
|
echo [build] Publishing %PROJECT%...
|
|
dotnet publish "%PROJECT%" -c %CONFIG% -r %RUNTIME% --self-contained false -o "%OUTDIR%"
|
|
if errorlevel 1 (
|
|
echo [build] FAILED
|
|
exit /b 1
|
|
)
|
|
|
|
echo [build] OK: %OUTDIR%\anti-syktsu-proxy.exe
|
|
exit /b 0
|