@echo off setlocal cd /d "%~dp0" title SZPS PUBLIC - Cloudflare Tunnel echo ============================================ echo SZPS STREAM - TRYB PUBLICZNY echo ============================================ echo. where python >nul 2>&1 if errorlevel 1 ( echo BLAD: Python nie jest dostepny w PATH. echo Uruchom najpierw: python --version pause exit /b 1 ) if not exist cloudflared.exe ( echo Pobieram cloudflared z oficjalnego repozytorium Cloudflare... powershell -NoProfile -ExecutionPolicy Bypass -Command "Invoke-WebRequest -UseBasicParsing 'https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-windows-amd64.exe' -OutFile 'cloudflared.exe'" if errorlevel 1 ( echo BLAD: Nie udalo sie pobrac cloudflared.exe pause exit /b 1 ) ) echo Uruchamiam serwer overlay... start "SZPS Overlay Server" cmd /k "cd /d ""%~dp0"" && python server.py" timeout /t 4 /nobreak >nul echo. echo Za chwile Cloudflare wyswietli adres w formie: echo https://LOSOWY-ADRES.trycloudflare.com echo. echo Uzyj: echo https://LOSOWY-ADRES.trycloudflare.com/overlay_liga.html echo https://LOSOWY-ADRES.trycloudflare.com/overlay_sklady.html echo https://LOSOWY-ADRES.trycloudflare.com/admin.html echo. echo NIE ZAMYKAJ tego okna podczas transmisji. echo ============================================ echo. cloudflared.exe tunnel --url http://127.0.0.1:8787 echo. echo Tunel zostal zatrzymany. pause