mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
20 lines
469 B
Batchfile
20 lines
469 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 VelopackCSharpWinForms with dotnet...
|
|
dotnet publish -c Release -o %~dp0publish
|
|
if errorlevel 1 exit /b 1
|
|
|
|
echo.
|
|
echo Building Velopack Release v%version%
|
|
vpk pack -u VelopackCSharpWinForms -v %version% -o %~dp0releases -p %~dp0publish -f net8-x64-desktop
|
|
if errorlevel 1 exit /b 1 |