-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSTART_DEEPCODE.bat
More file actions
45 lines (40 loc) · 1.22 KB
/
Copy pathSTART_DEEPCODE.bat
File metadata and controls
45 lines (40 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@echo off
REM ============================================================
REM DeepCode - One-Click-Start
REM Startet die Desktop-App (DeepSeek-Coding-Assistent).
REM ============================================================
title DeepCode
cd /d "%~dp0"
echo.
echo ==== DeepCode wird gestartet ====
echo.
REM Abhaengigkeiten installieren, falls noch nicht vorhanden
if not exist "node_modules" (
echo Erstmaliger Start: installiere Abhaengigkeiten ^(npm install^)...
call npm install
if errorlevel 1 (
echo.
echo FEHLER bei npm install. Bitte Node.js pruefen.
pause
exit /b 1
)
)
REM ALWAYS build before starting. `npm run start` is electron-vite preview, which only
REM SERVES out\ and never builds — so without this, relaunching after a code change would
REM keep running the stale bundle (a fixed bug would look "still broken" until out\ is rebuilt).
REM The build is fast (~1-2s); this guarantees every launch runs the current source.
echo Baue die App ^(aktueller Stand^)...
call npm run build
if errorlevel 1 (
echo.
echo FEHLER beim Build.
pause
exit /b 1
)
echo Starte die App...
call npm run start
if errorlevel 1 (
echo.
echo Die App wurde beendet oder es gab einen Fehler.
pause
)