mirror of
https://github.com/skoelle/marcer-gamedvd-launcher.git
synced 2026-09-17 18:50:25 +00:00
move all files
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
@echo off
|
||||
|
||||
REM === Build script for MarcerGameDvdLauncher (requires .NET SDK 6 or newer) ===
|
||||
echo Building MarcerGameDvdLauncher...
|
||||
where dotnet >nul 2>nul
|
||||
if errorlevel 1 (
|
||||
echo [ERROR] .NET SDK not found. Please install from https://dotnet.microsoft.com/download
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Im src-Ordner bauen (build.cmd liegt in scripts/)
|
||||
cd /d %~dp0
|
||||
cd ..\src\MarcerGameDvdLauncher
|
||||
|
||||
dotnet build -c Release
|
||||
if errorlevel 1 (
|
||||
echo [ERROR] Build failed!
|
||||
exit /b 2
|
||||
)
|
||||
|
||||
REM Finden der fertigen .exe (Release-Verzeichnis)
|
||||
for /f "delims=" %%I in ('dir /b /s /a-d bin\Release\*MarcerGameDvdLauncher*.exe') do set EXEPATH=%%I
|
||||
if exist "%EXEPATH%" (
|
||||
echo [OK] Build complete. EXE: "%EXEPATH%"
|
||||
) else (
|
||||
echo [WARNING] Build appears successful but .exe not found!
|
||||
)
|
||||
|
||||
pause
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/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 MarcerGameDvdLauncher subdirectory (script is in scripts/, code in src/)
|
||||
cd "$(dirname "$0")"
|
||||
cd "../src/MarcerGameDvdLauncher"
|
||||
|
||||
dotnet build -c Release
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "[ERROR] Build failed!"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# Check for the built binary
|
||||
BINPATH=$(find "bin/Release" \( -name "MarcerGameDvdLauncher" -o -name "MarcerGameDvdLauncher.exe" \) -print -quit 2>/dev/null)
|
||||
if [ -n "$BINPATH" ] && [ -f "$BINPATH" ]; then
|
||||
echo "[OK] Build complete. Binary: \"$BINPATH\""
|
||||
else
|
||||
echo "[WARNING] Build appears successful but binary not found!"
|
||||
fi
|
||||
@@ -0,0 +1,14 @@
|
||||
@echo off
|
||||
|
||||
REM Starts MarcerGameDvdLauncher.exe (script is in scripts/, code in src/)
|
||||
setlocal
|
||||
set EXE_PATH=%~dp0..\src\MarcerGameDvdLauncher\bin\Release\net10.0\MarcerGameDvdLauncher.exe
|
||||
|
||||
if not exist "%EXE_PATH%" (
|
||||
echo [ERROR] Application not built. Please run build.cmd first.
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
pushd "%~dp0..\src\MarcerGameDvdLauncher\bin\Release\net10.0"
|
||||
"MarcerGameDvdLauncher.exe"
|
||||
popd
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Starts MarcerGameDvdLauncher (script is in scripts/, code in src/)
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
EXE_PATH="$SCRIPT_DIR/../src/MarcerGameDvdLauncher/bin/Release/net10.0/MarcerGameDvdLauncher"
|
||||
|
||||
if [ ! -f "$EXE_PATH" ]; then
|
||||
echo "[ERROR] Application not built. Please run build.sh first."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "$SCRIPT_DIR/../src/MarcerGameDvdLauncher/bin/Release/net10.0"
|
||||
./MarcerGameDvdLauncher
|
||||
Reference in New Issue
Block a user