@echo off
setlocal

:: Self-locate so this works no matter where the folder is placed/extracted.
set "ROOT=%~dp0"

title Thibitisha Bridge
color 0A

echo.
echo  ============================================================
echo       THIBITISHA BRIDGE
echo  ============================================================
echo.
echo  Everything needed (Node.js, ADB, Cloudflare Tunnel) is bundled
echo  in this folder - nothing else to install.
echo.
echo  Keep this window open while verifying. Press Ctrl+C to stop.
echo.

:: Use an uncommon port so this doesn't collide with other local apps
:: (some PCs have background tools that squat on common ports like 3001).
set "PORT=47235"

cd /d "%ROOT%app"
"%ROOT%node\node.exe" bridge.js

echo.
echo  Bridge stopped.
pause
