47 lines
1.3 KiB
Batchfile
47 lines
1.3 KiB
Batchfile
@echo off
|
||
chcp 65001 >nul
|
||
setlocal enabledelayedexpansion
|
||
|
||
cd /d "%~dp0"
|
||
cd ..
|
||
|
||
echo ============================================================
|
||
echo Tätigkeitsnachweis-Generator – Build-Pipeline
|
||
echo ============================================================
|
||
echo.
|
||
|
||
REM ── Virtuelle Umgebung aktivieren ────────────────────────────
|
||
if exist "0_application\.venv\Scripts\python.exe" (
|
||
set PYTHON=0_application\.venv\Scripts\python.exe
|
||
echo [OK] Virtuelle Umgebung gefunden
|
||
) else if exist ".venv\Scripts\python.exe" (
|
||
set PYTHON=.venv\Scripts\python.exe
|
||
echo [OK] Virtuelle Umgebung gefunden
|
||
) else (
|
||
echo [WARN] Keine virtuelle Umgebung gefunden, nutze System-Python
|
||
set PYTHON=python
|
||
)
|
||
|
||
echo.
|
||
|
||
REM ── Parameter durchreichen ──────────────────────────────────
|
||
set ARGS=%*
|
||
if "%ARGS%"=="" (
|
||
echo Starte interaktiven Build …
|
||
echo.
|
||
)
|
||
|
||
REM ── Build ausführen ─────────────────────────────────────────
|
||
%PYTHON% "1_build-pipeline\build.py" %ARGS%
|
||
|
||
if errorlevel 1 (
|
||
echo.
|
||
echo [FEHLER] Build fehlgeschlagen!
|
||
pause
|
||
exit /b 1
|
||
)
|
||
|
||
echo.
|
||
echo Build abgeschlossen.
|
||
pause
|