Files
marcer-gamedvd-launcher/build.sh
T
2026-08-10 21:28:01 +02:00

30 lines
831 B
Bash
Executable File

#!/bin/bash
# === Build script for MarcerGameDvdLauncher (requires .NET SDK 6 or newer) ===
echo "Building MarcerGameDvdLauncher..."
if ! command -v dotnet &> /dev/null; then
echo "[ERROR] .NET SDK not found. Please install from https://dotnet.microsoft.com/download"
exit 1
fi
# Build in current directory (where build.sh is located)
cd "$(dirname "$0")"
# Change to MarcerGameDvdLauncher subdirectory
cd "MarcerGameDvdLauncher"
dotnet build -c Release
if [ $? -ne 0 ]; then
echo "[ERROR] Build failed!"
exit 2
fi
# Check for the built .exe file
EXEPATH=$(find "bin/Release" -name "MarcerGameDvdLauncher*.exe" -print -quit 2>/dev/null)
if [ -n "$EXEPATH" ] && [ -f "$EXEPATH" ]; then
echo "[OK] Build complete. EXE: \"$EXEPATH\""
else
echo "[WARNING] Build appears successful but .exe not found!"
fi