2024-08-06 22:56:40 +01:00
|
|
|
@echo off
|
|
|
|
|
setlocal enabledelayedexpansion
|
|
|
|
|
|
|
|
|
|
if "%~1"=="" (
|
|
|
|
|
echo Version number is required.
|
|
|
|
|
echo Usage: build.bat [version] [extra_args...]
|
|
|
|
|
exit /b 1
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
cd %~dp0
|
|
|
|
|
|
|
|
|
|
echo.
|
|
|
|
|
echo Building Iced/Rust
|
|
|
|
|
cargo build
|
2025-06-27 10:35:42 +01:00
|
|
|
if errorlevel 1 exit /b 1
|
2024-08-06 22:56:40 +01:00
|
|
|
|
|
|
|
|
echo.
|
|
|
|
|
echo Building Velopack Release v%~1
|
2025-06-27 10:35:42 +01:00
|
|
|
|
2024-08-06 22:56:40 +01:00
|
|
|
mkdir publish
|
2025-06-27 10:35:42 +01:00
|
|
|
if errorlevel 1 exit /b 1
|
|
|
|
|
|
2024-08-06 22:56:40 +01:00
|
|
|
move target\debug\velorusticedsample.exe publish\velorusticedsample.exe
|
2025-06-27 10:35:42 +01:00
|
|
|
if errorlevel 1 exit /b 1
|
|
|
|
|
|
|
|
|
|
vpk pack -u VeloRustIcedSample -o releases -p publish -v %*
|
|
|
|
|
if errorlevel 1 exit /b 1
|