Add more robust error handling to all the sample build scripts

This commit is contained in:
Caelan Sayler
2025-06-27 10:35:42 +01:00
committed by Caelan
parent 72af62649f
commit 4ba75beea8
15 changed files with 49 additions and 8 deletions

View File

@@ -12,9 +12,16 @@ cd %~dp0
echo.
echo Building Iced/Rust
cargo build
if errorlevel 1 exit /b 1
echo.
echo Building Velopack Release v%~1
mkdir publish
if errorlevel 1 exit /b 1
move target\debug\velorusticedsample.exe publish\velorusticedsample.exe
vpk pack -u VeloRustIcedSample -o releases -p publish -v %*
if errorlevel 1 exit /b 1
vpk pack -u VeloRustIcedSample -o releases -p publish -v %*
if errorlevel 1 exit /b 1

View File

@@ -1,4 +1,5 @@
#!/bin/bash
set -e
# Find the absolute path of the script
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"