@echo off chcp 65001 >nul 2>&1 title U-Claw REM Thin launcher: locate the bundled node and hand off to lib\start.mjs. REM All checks, messages and error handling live there so Windows and macOS REM cannot drift apart, and so nothing user-facing has to be written in a .bat REM (cmd.exe mis-parses non-ASCII as GBK, and treats an unescaped ) as REM block-end -- both were recurring sources of flash-exit bugs). set "UCLAW_DIR=%~dp0" set "NODE_BIN=%UCLAW_DIR%app\runtime\node-win-x64\node.exe" if not exist "%NODE_BIN%" ( echo. echo U-Claw is missing a file it needs to start. echo The copy onto this drive probably did not finish. echo. echo Copy the U-Claw folder onto the drive again, then try once more. echo. pause exit /b 1 ) "%NODE_BIN%" "%UCLAW_DIR%lib\start.mjs" set "EXIT_CODE=%errorlevel%" pause exit /b %EXIT_CODE%