Merge branch 'untested' of https://git.adolin.xyz/saru/lobotomy-mod-pack into untested

This commit is contained in:
Obie Hinojosa 2024-10-25 14:47:17 -05:00
commit efa34e1d15

View File

@ -4,13 +4,14 @@ cd /D "%~dp0"
set mcroot="%USERPROFILE%\AppData\Roaming\.minecraft"
set modfolder="%USERPROFILE%\AppData\Roaming\.minecraft\mods"
set cusdate=%DATE:~4,2%-%DATE:~7,2%-%DATE:~10,4%
echo "################"
echo SCRIPT STARTING
echo "################"
echo.
@timeout /t 1 >nul 2>&1
cd /d %mcroot%
echo Downloading latest fabric installer...
curl -k "https://maven.fabricmc.net/net/fabricmc/fabric-installer/1.0.1/fabric-installer-1.0.1.exe" -o fabricinstaller.exe
@ -19,13 +20,15 @@ echo Downloading latest fabric installer...
ECHO ###### !!!!! ######
start /WAIT "%mcroot%" fabricinstaller.exe
echo Updating Mods...
curl -k "https://git.adolin.xyz/saru/lobotomy-mod-pack/src/branch/main/mods.tar.gz" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;q=0.8" -H "Accept-Language: en-US,en;q=0.5" -H "Accept-Encoding: gzip, deflate, br, zstd" -H "Prefer: safe" -H "Alt-Used: git.adolin.xyz" -H "Connection: keep-alive" -H "Upgrade-Insecure-Requests: 1" -H "Sec-Fetch-Dest: document" -H "Sec-Fetch-Mode: navigate" -H "Sec-Fetch-Site: same-origin" -H "Authorization: token ***REMOVED***" -o mods.tar.gz
echo Updating Mods...
cd /d %mcroot%
curl -k "https://git.adolin.xyz/saru/lobotomy-mod-pack/raw/branch/main/mods.tar.gz" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;q=0.8" -H "Accept-Language: en-US,en;q=0.5" -H "Accept-Encoding: gzip, deflate, br, zstd" -H "Prefer: safe" -H "Alt-Used: git.adolin.xyz" -H "Connection: keep-alive" -H "Upgrade-Insecure-Requests: 1" -H "Sec-Fetch-Dest: document" -H "Sec-Fetch-Mode: navigate" -H "Sec-Fetch-Site: same-origin" -H "Authorization: token ***REMOVED***" -o mods.tar.gz
echo Compressing and backing up existing mods...
tar -czf mods-backup.tar.gz /mods
tar -czf %mcroot%/mods-backup-%cusdate%.tar.gz %modfolder%
@timeout /t 2 >nul 2>&1
echo Deleting existing mods...
@ -34,7 +37,7 @@ echo Updating Mods...
@timeout /t 2 >nul 2>&1
tar -xvzf mods.tar.gz
tar -xvzf %mcroot%/mods.tar.gz -C %mcroot%
echo Sigma!
echo All done.