From 19c987585a72840c5cfe21b3980d953d71307a62 Mon Sep 17 00:00:00 2001 From: bruno Date: Mon, 27 Jul 2026 10:49:35 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20build=20NSIS=20uniquement=20(currentUser?= =?UTF-8?q?,=20pas=20de=20droits=20admin)=20+=20console=20cach=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - --bundles nsis seulement (le .msi WiX ignore installMode: currentUser) - L'installeur NSIS installe dans %LOCALAPPDATA%\Programs\ObsiGate\ sans admin - La console: déjà gérée par cfg_attr windows_subsystem + CREATE_NO_WINDOW --- desktop/build-windows.bat | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/desktop/build-windows.bat b/desktop/build-windows.bat index 464bbff..644bb3d 100644 --- a/desktop/build-windows.bat +++ b/desktop/build-windows.bat @@ -1,6 +1,6 @@ @echo off REM ============================================================ -REM ObsiGate Desktop — Build Windows (.msi + .exe) +REM ObsiGate Desktop — Build Windows (NSIS installer) REM Prérequis : Rust, Tauri CLI, NSIS, Python 3.11 embed REM ============================================================ setlocal enabledelayedexpansion @@ -52,8 +52,8 @@ xcopy /E /I /Q /Y "..\frontend" "frontend" echo ✅ Staged REM ── 3. Build Tauri ──────────────────────────────────────────── -echo [3/6] Building Tauri application... -cargo tauri build --target x86_64-pc-windows-msvc --bundles msi,nsis +echo [3/6] Building Tauri application (NSIS per-user installer)... +cargo tauri build --target x86_64-pc-windows-msvc --bundles nsis if errorlevel 1 ( echo ❌ Build failed! goto :cleanup @@ -77,8 +77,7 @@ echo ✅ Cleaned REM ── 6. Résultats ─────────────────────────────────────────────── echo [6/6] Results: -dir /b "%OUTDIR%\bundle\msi\*.msi" 2>nul dir /b "%OUTDIR%\bundle\nsis\*.exe" 2>nul echo. -echo ✅ Done! Check %OUTDIR%\bundle\ +echo ✅ Done! Installer: %OUTDIR%\bundle\nsis\ endlocal