This commit is contained in:
Saifeddine ALOUI 2023-07-15 20:10:22 +02:00
parent 7ff0deedb3
commit 8d3d288b64

View File

@ -29,10 +29,34 @@ set PATH=%PATH%;%SystemRoot%\system32
set INSTALL_ENV_DIR=%cd%\installer_files\lollms_env
set MINICONDA_DIR=%cd%\installer_files\miniconda3
if not exist "%MINICONDA_DIR%\Scripts\activate.bat" ( echo Miniconda not found. && goto end )
if not exist "%MINICONDA_DIR%\Scripts\activate.bat" ( echo Miniconda not found. Please reinstall lollms using win_install.bat. && goto end )
call "%MINICONDA_DIR%\Scripts\activate.bat" activate "%INSTALL_ENV_DIR%"
cd lollms-webui
REM Check for Git updates
git fetch
git status -uno > git_status.txt
REM Read the Git status from the file
set /p git_status=<git_status.txt
REM Prompt the user to update if there are changes
if "%git_status%" == "" (
echo No updates available.
) else (
echo Updates are available. Do you want to update? (y/n)
set /p choice=
if /i "%choice%"=="y" (
git pull
echo Repository has been updated successfully.
) else (
echo Skipping the update.
)
)
REM Clean up the temporary file
del git_status.txt
@rem set default cuda toolkit to the one in the environment
set "CUDA_PATH=%INSTALL_ENV_DIR%"