mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
23 lines
513 B
Batchfile
23 lines
513 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 velopack_libc...
|
|
cargo build -p velopack_libc
|
|
|
|
echo.
|
|
echo Compiling VelopackCppWidgets with cmake...
|
|
cmake -S . -B build-rel
|
|
cmake --build build-rel -j --config Release
|
|
|
|
echo.
|
|
echo Building Velopack Release v%version%
|
|
vpk pack -u VelopackCppWidgets -o %~dp0releases -p %~dp0build-rel\Release -e main.exe -v %* |