From c2566f702fe502ad2c778b89bb005d9fd6d5d7ba Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Tue, 12 May 2026 19:59:56 +0300 Subject: [PATCH] Update .gitignore to include pull_and_tl.bat for improved project resource management. --- .gitignore | 1 + pull_and_tl.bat | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 pull_and_tl.bat diff --git a/.gitignore b/.gitignore index 8d10086..a7a6cd5 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ !/PupaMLupa.json !/TLauncherAdditional.json !/.curseclient +!/pull_and_tl.bat !/config/** !/kubejs/** diff --git a/pull_and_tl.bat b/pull_and_tl.bat new file mode 100644 index 0000000..fb39312 --- /dev/null +++ b/pull_and_tl.bat @@ -0,0 +1,30 @@ +@echo off +setlocal EnableExtensions +cd /d "%~dp0" + +git pull +if errorlevel 1 ( + echo Git pull failed, code: %ERRORLEVEL% + pause + exit /b 1 +) + +REM TLauncher — основной путь через профиль пользователя +set "TL_HOME=%USERPROFILE%\AppData\Roaming\.minecraft\TLauncher.exe" +REM Запасной вариант: относительно папки bat (…\Instances\ИмяСборки ^> … ^> USERPROFILE) +set "TL_REL=%~dp0..\..\..\..\AppData\Roaming\.minecraft\TLauncher.exe" + +if exist "%TL_HOME%" ( + set "TL=%TL_HOME%" +) else if exist "%TL_REL%" ( + set "TL=%TL_REL%" +) else ( + echo TLauncher not found. Tried: + echo %TL_HOME% + echo %TL_REL% + pause + exit /b 1 +) + +start "" "%TL%" +endlocal