From bbf23df6ab112559cfc9af8a71cd2cf48d8e12f8 Mon Sep 17 00:00:00 2001 From: bruno Date: Sun, 26 Jul 2026 16:04:06 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20taskkill=20au=20d=C3=A9but=20du=20script?= =?UTF-8?q?=20(=C3=A9tape=200)=20avant=20de=20toucher=20python-embed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Évite 'os error 32' quand Tauri essaie de lire python-embed/ pour le bundle alors que le processus Python du run précédent verrouille les .pyd --- desktop/build-windows.bat | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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