Files
velopack/samples/CSharpWpf/build.bat

20 lines
459 B
Batchfile

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