Eigener Installer mit Standard- und Portable-Modus, Updater fuer beide Varianten

This commit is contained in:
Davito committed 2026-10-14 10:34:48 +02:00
1 parent df88f8abaa
commit 92d02d0008
6 files changed
+508 -36

No files matched your search

+16 -4
View File
@@ -8,14 +8,26 @@ if not exist node_modules (
if errorlevel 1 goto :fail
)
echo Baue Installer (NSIS)...
call npx tauri build
echo Baue EuerChat.exe ...
call npx tauri build --no-bundle
if errorlevel 1 goto :fail
for /f "usebackq delims=" %%v in (`node -p "require('./src-tauri/tauri.conf.json').version"`) do set VERSION=%%v
set MAKENSIS=%LOCALAPPDATA%\tauri\NSIS\makensis.exe
if not exist "%MAKENSIS%" set MAKENSIS=%ProgramFiles(x86)%\NSIS\makensis.exe
if not exist "%MAKENSIS%" (
echo [FEHLER] makensis nicht gefunden. NSIS 3 installieren: winget install NSIS.NSIS
goto :fail
)
if not exist dist mkdir dist
copy /y "src-tauri\target\release\bundle\nsis\EuerChat_*_x64-setup.exe" dist\ >nul
echo Baue Installer %VERSION% ...
"%MAKENSIS%" /V2 /DVERSION=%VERSION% installer\EuerChat.nsi
if errorlevel 1 goto :fail
copy /y src-tauri\target\release\euer-chat.exe EuerChat.exe >nul
echo [OK] Installer liegt in dist\ - EuerChat.exe (portabel) im Hauptordner.
echo [OK] Installer: dist\EuerChat_%VERSION%_x64-setup.exe
pause
exit /b 0