Update .gitignore to include pull_and_tl.bat for improved project resource management.

This commit is contained in:
Leonid Pershin
2026-05-12 19:59:56 +03:00
parent 667e4fa2d8
commit c2566f702f
2 changed files with 31 additions and 0 deletions
+1
View File
@@ -18,6 +18,7 @@
!/PupaMLupa.json
!/TLauncherAdditional.json
!/.curseclient
!/pull_and_tl.bat
!/config/**
!/kubejs/**
+30
View File
@@ -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