@echo off echo ======================================== echo Minimal Test Framework - Quick Start echo ======================================== echo. :menu echo Please select an option: echo 1. Install dependencies echo 2. Test run (development mode) echo 3. Build exe echo 4. Run built exe echo 5. Show help echo 0. Exit echo. set /p choice=Enter option (0-5): if "%choice%"=="1" goto install_deps if "%choice%"=="2" goto test_run if "%choice%"=="3" goto build_exe if "%choice%"=="4" goto run_exe if "%choice%"=="5" goto show_help if "%choice%"=="0" goto exit echo Invalid option, please try again echo. goto menu :install_deps echo. echo Installing dependencies... pip install -r requirements_minimal.txt if %errorlevel% equ 0 ( echo Dependencies installed successfully ) else ( echo Failed to install dependencies ) echo. pause goto menu :test_run echo. echo Starting test server... echo After server starts, visit http://localhost:5000 in your browser echo Press Ctrl+C to stop the server echo. python minimal_test_app.py echo. pause goto menu :build_exe echo. echo Starting build... python build_minimal.py echo. pause goto menu :run_exe echo. if exist "dist\MinimalTestApp.exe" ( echo Starting built application... echo After app starts, visit http://localhost:5000 in your browser echo. cd dist MinimalTestApp.exe cd .. ) else ( echo dist\MinimalTestApp.exe not found echo Please run option 3 to build first ) echo. pause goto menu :show_help echo. echo ======================================== echo Usage Instructions echo ======================================== echo. echo 1. First time: select "1. Install dependencies" echo 2. After installation: select "2. Test run" to verify echo 3. After testing: select "3. Build exe" echo 4. After building: select "4. Run built exe" to verify echo. echo Test Steps: echo - HTTP API test: Click "Test HTTP API" button on page echo - WebSocket test: Page auto-connects, can send test messages echo - System info: Check if SocketIO mode shows "threading" echo. echo Files: echo - minimal_test_app.py: Main application echo - build_minimal.py: Build script echo - requirements_minimal.txt: Dependencies echo - README.md: Detailed documentation echo. echo Troubleshooting: echo - If "Invalid async_mode specified" error occurs echo check if dependencies are fully installed echo - If WebSocket connection fails, check firewall settings echo - See README.md for detailed instructions echo. pause goto menu :exit echo Thank you for using! exit /b 0