make pretty

This commit is contained in:
Devin Zuczek
2026-07-14 14:38:06 -04:00
parent 0200509ed2
commit ae2edde83b
+18 -9
View File
@@ -1,38 +1,47 @@
@echo off @echo off
setlocal setlocal
rem ANSI colors (Windows 10+): get the ESC character, then define color codes
for /F "delims=" %%a in ('forfiles /p "%~dp0." /m "%~nx0" /c "cmd /c echo 0x1B"') do set "ESC=%%a"
set "CYAN=%ESC%[96m"
set "GREEN=%ESC%[92m"
set "RED=%ESC%[91m"
set "RESET=%ESC%[0m"
set "STEAM_USERNAME=" set "STEAM_USERNAME="
set /p STEAM_USERNAME=Enter your Steam username: set /p STEAM_USERNAME=Enter your Steam username:
if "%STEAM_USERNAME%"=="" ( if "%STEAM_USERNAME%"=="" (
echo No username entered - stopping. echo %RED%No username entered - stopping.%RESET%
exit /b 1 exit /b 1
) )
echo === Installing DepotDownloader === echo %CYAN%=== Installing DepotDownloader ===%RESET%
curl -f -L -o DepotDownloader.zip https://github.com/SteamRE/DepotDownloader/releases/download/DepotDownloader_3.4.0/DepotDownloader-windows-x64.zip || goto :error curl -f -L -o DepotDownloader.zip https://github.com/SteamRE/DepotDownloader/releases/download/DepotDownloader_3.4.0/DepotDownloader-windows-x64.zip || goto :error
if not exist "DepotDownloader" mkdir "DepotDownloader" if not exist "DepotDownloader" mkdir "DepotDownloader"
tar -xf DepotDownloader.zip -C DepotDownloader || goto :error tar -xf DepotDownloader.zip -C DepotDownloader || goto :error
del DepotDownloader.zip del DepotDownloader.zip
echo === Downloading Rec Room depot via DepotDownloader (will prompt for Steam password) === echo %CYAN%=== Downloading Rec Room depot via DepotDownloader (will prompt for Steam password) ===%RESET%
DepotDownloader\DepotDownloader.exe -app 471710 -depot 471711 -manifest 7859140924515540835 -dir . -username "%STEAM_USERNAME%" || goto :error DepotDownloader\DepotDownloader.exe -remember-password -app 471710 -depot 471711 -manifest 7859140924515540835 -dir . -username "%STEAM_USERNAME%" || goto :error
echo === Downloading BepInEx and extracting to this directory === echo %CYAN%=== Downloading BepInEx and extracting to this directory ===%RESET%
curl -f -L -o BepInEx.zip https://github.com/BepInEx/BepInEx/releases/download/v6.0.0-pre.2/BepInEx-Unity.IL2CPP-win-x64-6.0.0-pre.2.zip || goto :error curl -f -L -o BepInEx.zip https://github.com/BepInEx/BepInEx/releases/download/v6.0.0-pre.2/BepInEx-Unity.IL2CPP-win-x64-6.0.0-pre.2.zip || goto :error
tar -xf BepInEx.zip -C . || goto :error tar -xf BepInEx.zip -C . || goto :error
del BepInEx.zip del BepInEx.zip
echo === Downloading RecNetPlugin.dll into BepInEx\plugins === echo %CYAN%=== Downloading RecNetPlugin.dll into BepInEx\plugins ===%RESET%
if not exist "BepInEx\plugins" mkdir "BepInEx\plugins" if not exist "BepInEx\plugins" mkdir "BepInEx\plugins"
curl -f -L -o "BepInEx\plugins\RecNetPlugin.dll" https://github.com/djdevin/recnet-plugin/releases/download/0.0.3/RecNetPlugin.dll || goto :error curl -f -L -o "BepInEx\plugins\RecNetPlugin.dll" https://github.com/djdevin/recnet-plugin/releases/download/0.0.3/RecNetPlugin.dll || goto :error
echo === Extracting bundled global-metadata into RecRoom_Data\il2cpp_data\Metadata === echo %CYAN%=== Extracting bundled global-metadata into RecRoom_Data\il2cpp_data\Metadata ===%RESET%
tar -xf "RecRoom_Data\il2cpp_data\Metadata\global-metadata.zip" -C "RecRoom_Data\il2cpp_data\Metadata" || goto :error tar -xf "RecRoom_Data\il2cpp_data\Metadata\global-metadata.zip" -C "RecRoom_Data\il2cpp_data\Metadata" || goto :error
echo === Done === echo %GREEN%=== Done ===%RESET%
pause
exit /b 0 exit /b 0
:error :error
echo. echo.
echo *** FAILED with error code %errorlevel% - stopping. *** echo %RED%*** FAILED with error code %errorlevel% - stopping. ***%RESET%
pause
exit /b %errorlevel% exit /b %errorlevel%