diff --git a/desktop/build-windows.bat b/desktop/build-windows.bat index 0c508c0..9bdee72 100644 --- a/desktop/build-windows.bat +++ b/desktop/build-windows.bat @@ -10,6 +10,11 @@ echo ObsiGate Desktop — Build Windows echo ======================================== echo. +REM ── 0. Kill any leftover backend from a previous run ────────── +echo [0/5] Killing leftover Python processes... +taskkill /F /IM python.exe 2>nul +echo. + REM ── 1. Vérifier les prérequis ───────────────────────────────── echo [1/5] Verifying prerequisites... where cargo >nul 2>&1 || (echo ❌ Rust/Cargo not found. Install from https://rustup.rs & exit /b 1) @@ -51,8 +56,6 @@ echo ✅ Build successful REM ── 4. Copier le runtime à côté de l'exécutable ─────────────── echo [4/5] Copying runtime to output dir... -REM Kill any leftover backend from a previous run -taskkill /F /IM python.exe /FI "WINDOWTITLE eq *" 2>nul set "OUTDIR=target\x86_64-pc-windows-msvc\release" if exist "%OUTDIR%\python-embed" rmdir /s /q "%OUTDIR%\python-embed" 2>nul if exist "%OUTDIR%\backend" rmdir /s /q "%OUTDIR%\backend" 2>nul