@echo off
chcp 65001 >nul
cd /d "%~dp0"

echo ========================================
echo  本地快速启动：Vite + Electron
echo ========================================
echo.

node scripts\start-local.cjs
set EXIT_CODE=%ERRORLEVEL%

if not "%EXIT_CODE%"=="0" (
    echo.
    echo 启动失败，退出码：%EXIT_CODE%
    echo 请根据上方提示处理后重试。
    pause
)

exit /b %EXIT_CODE%
