@echo off echo ============================================================ echo SRT Streamer - Setup echo ============================================================ echo. :: Check Node.js where node >nul 2>&1 if %errorlevel% neq 0 ( echo [ERROR] Node.js not found! Please install from https://nodejs.org pause exit /b 1 ) :: Check FFmpeg echo Checking FFmpeg... where ffmpeg >nul 2>&1 if %errorlevel% neq 0 ( echo [WARNING] FFmpeg not found in system PATH. echo. echo Please place ffmpeg.exe in the ffmpeg-bin\ folder. echo Download FFmpeg with SRT support from: echo https://github.com/BtbN/FFmpeg-Builds/releases echo (download ffmpeg-master-latest-win64-gpl.zip) echo. mkdir ffmpeg-bin 2>nul echo After placing ffmpeg.exe in ffmpeg-bin\, run this setup again. ) else ( echo [OK] FFmpeg found in system PATH. echo. echo Copying FFmpeg to ffmpeg-bin\... mkdir ffmpeg-bin 2>nul for /f "tokens=*" %%i in ('where ffmpeg') do ( copy "%%i" "ffmpeg-bin\ffmpeg.exe" >nul 2>&1 echo Copied: %%i goto :ffmpeg_done ) :ffmpeg_done ) echo. echo Installing dependencies... call npm install if %errorlevel% neq 0 ( echo [ERROR] npm install failed! pause exit /b 1 ) echo. echo Generating icons... node assets/create-placeholder-icons.js echo. echo ============================================================ echo Setup complete! echo Run: npm run dev (development mode) echo Run: npm run build (build portable .exe) echo ============================================================ echo. pause