fix: taskkill au début du script (étape 0) avant de toucher python-embed
CI / lint (push) Successful in 24s
CI / security (push) Successful in 15s
CI / test (push) Successful in 29s
CI / build (push) Successful in 7s
CI / e2e (push) Failing after 23s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled

É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
This commit is contained in:
2026-07-26 16:04:06 -04:00
parent 0a560d5f7b
commit bbf23df6ab
+5 -2
View File
@@ -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