mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
20 lines
509 B
Batchfile
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 |