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,7 +12,9 @@ set "version=%~1"
echo.
echo Compiling CSharpUno with dotnet...
dotnet publish -c Release --framework net9.0-desktop -o %~dp0UnoSample\publish UnoSample\UnoSample.csproj
if errorlevel 1 exit /b 1
echo.
echo Building Velopack Release v%version%
vpk pack -u CSharpUno -v %version% -o %~dp0UnoSample\releases -p %~dp0UnoSample\publish --mainExe UnoSample.exe
if errorlevel 1 exit /b 1

View File

@@ -1,4 +1,5 @@
#!/bin/bash
set -e
# Check if version parameter is provided
if [ "$#" -ne 1 ]; then