35 lines
882 B
Batchfile
35 lines
882 B
Batchfile
@echo off
|
|
set SRC=https://srv1361159.hstgr.cloud
|
|
set ROOT=%~dp0..
|
|
echo Download app-base.js and index.html ...
|
|
echo.
|
|
|
|
curl --ssl-no-revoke -fsSL "%SRC%/app-base.js" -o "%ROOT%\app-base.js"
|
|
if errorlevel 1 goto try_powershell
|
|
curl --ssl-no-revoke -fsSL "%SRC%/Create%%20Room/index.html" -o "%~dp0index.html"
|
|
if errorlevel 1 goto try_powershell
|
|
|
|
echo.
|
|
echo OK - press Ctrl+Shift+R on Create Room page
|
|
goto end
|
|
|
|
:try_powershell
|
|
echo curl failed, trying PowerShell...
|
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0FIX-NOW.ps1"
|
|
if errorlevel 1 goto manual
|
|
goto end
|
|
|
|
:manual
|
|
echo.
|
|
echo AUTO DOWNLOAD FAILED - do this manually:
|
|
echo 1) Open in browser: %SRC%/Create%%20Room/
|
|
echo 2) Ctrl+U view source, Ctrl+A Ctrl+C
|
|
echo 3) Notepad - paste - Save As:
|
|
echo %ROOT%\Create Room\index.html
|
|
echo 4) Open %SRC%/app-base.js - Save As:
|
|
echo %ROOT%\app-base.js
|
|
echo.
|
|
|
|
:end
|
|
pause
|