fix: build NSIS uniquement (currentUser, pas de droits admin) + console cachée
CI / lint (push) Successful in 28s
CI / security (push) Successful in 15s
CI / test (push) Successful in 29s
CI / build (push) Successful in 9s
CI / e2e (push) Failing after 19s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
CI / lint (push) Successful in 28s
CI / security (push) Successful in 15s
CI / test (push) Successful in 29s
CI / build (push) Successful in 9s
CI / e2e (push) Failing after 19s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
- --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
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
@echo off
|
@echo off
|
||||||
REM ============================================================
|
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 Prérequis : Rust, Tauri CLI, NSIS, Python 3.11 embed
|
||||||
REM ============================================================
|
REM ============================================================
|
||||||
setlocal enabledelayedexpansion
|
setlocal enabledelayedexpansion
|
||||||
@@ -52,8 +52,8 @@ xcopy /E /I /Q /Y "..\frontend" "frontend"
|
|||||||
echo ✅ Staged
|
echo ✅ Staged
|
||||||
|
|
||||||
REM ── 3. Build Tauri ────────────────────────────────────────────
|
REM ── 3. Build Tauri ────────────────────────────────────────────
|
||||||
echo [3/6] Building Tauri application...
|
echo [3/6] Building Tauri application (NSIS per-user installer)...
|
||||||
cargo tauri build --target x86_64-pc-windows-msvc --bundles msi,nsis
|
cargo tauri build --target x86_64-pc-windows-msvc --bundles nsis
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo ❌ Build failed!
|
echo ❌ Build failed!
|
||||||
goto :cleanup
|
goto :cleanup
|
||||||
@@ -77,8 +77,7 @@ echo ✅ Cleaned
|
|||||||
|
|
||||||
REM ── 6. Résultats ───────────────────────────────────────────────
|
REM ── 6. Résultats ───────────────────────────────────────────────
|
||||||
echo [6/6] Results:
|
echo [6/6] Results:
|
||||||
dir /b "%OUTDIR%\bundle\msi\*.msi" 2>nul
|
|
||||||
dir /b "%OUTDIR%\bundle\nsis\*.exe" 2>nul
|
dir /b "%OUTDIR%\bundle\nsis\*.exe" 2>nul
|
||||||
echo.
|
echo.
|
||||||
echo ✅ Done! Check %OUTDIR%\bundle\
|
echo ✅ Done! Installer: %OUTDIR%\bundle\nsis\
|
||||||
endlocal
|
endlocal
|
||||||
|
|||||||
Reference in New Issue
Block a user