diff --git a/desktop/build-windows.bat b/desktop/build-windows.bat index ed34ecb..301f304 100644 --- a/desktop/build-windows.bat +++ b/desktop/build-windows.bat @@ -18,19 +18,17 @@ echo ✅ Rust + Tauri OK REM ── 2. Préparer Python 3.11 embed ───────────────────────────── echo [2/5] Preparing Python embed... -if not exist "python-embed\python.exe" ( - echo 📥 Downloading Python 3.11 embed... - if exist "python-embed" rmdir /s /q "python-embed" - curl -L -o python-embed.zip "https://www.python.org/ftp/python/3.11.9/python-3.11.9-embed-amd64.zip" - powershell Expand-Archive -Path python-embed.zip -DestinationPath python-embed\ - del python-embed.zip +echo 📥 Downloading Python 3.11 embed... +if exist "python-embed" rmdir /s /q "python-embed" +curl -L -o python-embed.zip "https://www.python.org/ftp/python/3.11.9/python-3.11.9-embed-amd64.zip" +powershell Expand-Archive -Path python-embed.zip -DestinationPath python-embed\ +del python-embed.zip - REM Enable pip in embedded Python - echo import site >> python-embed\python311._pth +REM Enable pip in embedded Python +echo import site >> python-embed\python311._pth - REM Install dependencies - python-embed\python.exe -m pip install --no-cache-dir -r ..\backend\requirements.txt -) +REM Install dependencies +python-embed\python.exe -m pip install --no-cache-dir -r ..\backend\requirements.txt echo ✅ Python embed ready REM ── 3. Build Tauri ──────────────────────────────────────────── diff --git a/desktop/tauri.conf.json b/desktop/tauri.conf.json index 7423e4b..4de645f 100644 --- a/desktop/tauri.conf.json +++ b/desktop/tauri.conf.json @@ -76,14 +76,7 @@ }, "plugins": { "shell": { - "open": true, - "scope": [ - { - "name": "python-backend", - "cmd": "./python-embed/python", - "args": ["-m", "uvicorn", "backend.main:app", "--host", "127.0.0.1", "--port", "17890"] - } - ] + "open": true } } }