@echo off setlocal EnableExtensions chcp 65001 >nul rem OpsXShell local GUI launcher (Windows). rem App log path matches src-tauri infrastructure/file_log.rs (dirs::data_local_dir). cd /d "%~dp0.." set "PID_FILE=%TEMP%\opsxshell.pid" set "APP_LOG=%LOCALAPPDATA%\opsxshell\logs\opsxshell.log" echo. echo [opsxshell] starting... if not exist "node_modules\" ( echo [opsxshell] npm install... call npm install if errorlevel 1 exit /b 1 ) echo [opsxshell] npm run dev echo [opsxshell] app log: %APP_LOG% ^(max 10MB x 3 files^) start /b "" cmd /c "npm run dev" echo %DATE% %TIME% > "%PID_FILE%" echo [opsxshell] started. Tail app log with: echo powershell -Command "Get-Content -Path '%APP_LOG%' -Wait -Tail 50" echo. exit /b 0