-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtauri-dev.bat
More file actions
36 lines (29 loc) · 1.09 KB
/
Copy pathtauri-dev.bat
File metadata and controls
36 lines (29 loc) · 1.09 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
@echo off
setlocal enabledelayedexpansion
:: Enable launch logging to console during development
set VIC40_DEBUG_LAUNCH=1
:: Ensure Cargo/Rust binaries added by Rustup are available in this shell session
set PATH=%USERPROFILE%\.cargo\bin;%PATH%
:: Check for node_modules in a clean clone
if not exist "node_modules\" (
echo [GBBox] ERROR: node_modules folder not found.
echo [GBBox] Please run 'npm install' before starting the development server.
pause
exit /b 1
)
echo [GBBox] Using Rust:
rustc --version
cargo --version
:: Check if port 3000 is listening
netstat -ano | find "LISTENING" | find ":3000" > nul
if errorlevel 1 (
echo [GBBox] Frontend port 3000 not detected.
echo [GBBox] Launching 'npm run dev' in a separate window...
start "GBBox-Frontend" cmd /c "npm run dev"
echo [GBBox] Waiting 5 seconds for server to initialize...
timeout /t 5 /nobreak > nul
) else (
echo [GBBox] Frontend already running on port 3000.
)
echo [GBBox] Starting Tauri (connecting to http://localhost:3000)...
npx tauri dev --no-dev-server-wait --config tauri.dev-override.json