File size: 1,123 Bytes
914f53d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@echo off

REM Windows launcher for start-local-stream.ps1 (Docker Desktop + Mentra Live hotspot).

REM Double-click or run from cmd:

REM   scripts\local-stream\start-local-stream.cmd

REM Optional:

REM   set LAN_IP=192.168.43.81

REM   scripts\local-stream\start-local-stream.cmd

REM

REM If double-clicked and something fails, we pause so the window does not

REM vanish before you can read the error.

setlocal
cd /d "%~dp0"
set "ERR=0"

where docker >nul 2>&1
if errorlevel 1 (
  echo ERROR: docker not found. Start Docker Desktop, wait until it is running, then retry.
  set "ERR=1"
  goto :end
)



REM Prefer Windows PowerShell; -File avoids some parse quirks vs piping.
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0start-local-stream.ps1" %*
set "ERR=%ERRORLEVEL%"

:end
if not "%ERR%"=="0" (
  echo.
  echo ========================================================
  echo FAILED with exit code %ERR%.
  echo Keep this window open, read the error above, then press a key.
  echo ========================================================
  pause
)
endlocal & exit /b %ERR%