mirror of
https://github.com/Pixelplanet/Pixel-VR-Player.git
synced 2026-10-20 07:02:10 +02:00
55 lines
1.9 KiB
Batchfile
55 lines
1.9 KiB
Batchfile
@echo off
|
|
setlocal enabledelayedexpansion
|
|
|
|
echo ===============================================================
|
|
echo Pixel VR Player - Steam Frame Remote Installer
|
|
echo ===============================================================
|
|
echo This tool installs Pixel VR Player on your Valve Steam Frame
|
|
echo over your local Wi-Fi network directly from your PC.
|
|
echo ===============================================================
|
|
echo.
|
|
|
|
set "FRAME_IP=steamframe.local"
|
|
set /p "INPUT_IP=Enter Steam Frame IP address [press Enter for steamframe.local]: "
|
|
if not "!INPUT_IP!"=="" set "FRAME_IP=!INPUT_IP!"
|
|
|
|
echo.
|
|
echo Connecting to steamos@!FRAME_IP!...
|
|
echo (If prompted for a password, enter your SteamOS desktop password)
|
|
echo.
|
|
|
|
where ssh >nul 2>&1
|
|
if %ERRORLEVEL% neq 0 (
|
|
echo [ERROR] SSH is not installed or not in PATH on this PC.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
set "EXTRA_ARGS=%*"
|
|
if "%EXTRA_ARGS%"=="" (
|
|
set "REMOTE_CMD=curl -fsSL https://raw.githubusercontent.com/Pixelplanet/Pixel-VR-Player/main/tools/install.sh | sh"
|
|
) else (
|
|
set "REMOTE_CMD=curl -fsSL https://raw.githubusercontent.com/Pixelplanet/Pixel-VR-Player/main/tools/install.sh | sh -s -- %EXTRA_ARGS%"
|
|
)
|
|
|
|
ssh -o StrictHostKeyChecking=no steamos@!FRAME_IP! "!REMOTE_CMD!"
|
|
|
|
if %ERRORLEVEL% equ 0 (
|
|
echo.
|
|
echo ===============================================================
|
|
echo [SUCCESS] Operation completed on your Steam Frame!
|
|
echo ===============================================================
|
|
) else (
|
|
echo.
|
|
echo ===============================================================
|
|
echo [NOTE] If connection failed, please ensure:
|
|
echo 1. Both your PC and Steam Frame are on the same Wi-Fi.
|
|
echo 2. SSH is enabled on the headset.
|
|
echo (In Desktop Mode, open Konsole and run 'passwd',
|
|
echo then 'sudo systemctl start sshd', or enable Dev Mode).
|
|
echo ===============================================================
|
|
)
|
|
|
|
echo.
|
|
pause
|