Files
velopack/samples/CSharpAvalonia/build.bat

20 lines
509 B
Batchfile

@echo off
setlocal enabledelayedexpansion
if "%~1"=="" (
echo Version number is required.
echo Usage: build.bat [version] [extra_args...]
exit /b 1
)
set "version=%~1"
echo.
echo Compiling VelopackCSharpAvalonia with dotnet...
dotnet publish -c Release --no-self-contained -r win-x64 -o %~dp0publish
if errorlevel 1 exit /b 1
echo.
echo Building Velopack Release v%version%
vpk pack -u VelopackCSharpAvalonia -o %~dp0releases -p %~dp0publish -f net8-x64-desktop -v %*
if errorlevel 1 exit /b 1