mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 02:39:47 +00:00
upgraded installation script
This commit is contained in:
parent
95c1e24d9b
commit
d7602c7158
28
webui.bat
28
webui.bat
@ -74,19 +74,33 @@ exit /b 1
|
||||
:GIT_SKIP
|
||||
|
||||
REM Check if repository exists
|
||||
git rev-parse --is-inside-work-tree
|
||||
if errorlevel 1 goto :CLONE_REPO
|
||||
if errorlevel = 0 goto :PULL_CHANGES
|
||||
echo checking git repository
|
||||
if exist ".git" (
|
||||
goto :PULL_CHANGES
|
||||
) else (
|
||||
goto :CLONE_REPO
|
||||
)
|
||||
|
||||
:PULL_CHANGES
|
||||
echo Pulling latest changes
|
||||
git pull origin main
|
||||
goto :GET_PERSONALITIES
|
||||
|
||||
:CLONE_REPO
|
||||
echo Cloning repository...
|
||||
git clone https://github.com/nomic-ai/gpt4all-ui.git .
|
||||
git pull
|
||||
goto :GET_PERSONALITIES
|
||||
REM Check if repository exists
|
||||
if exist GPT4All (
|
||||
echo GPT4All folder found
|
||||
cd GPT4All
|
||||
echo Pulling latest changes
|
||||
git pull
|
||||
) else (
|
||||
echo Cloning repository...
|
||||
rem Clone the Git repository into a temporary directory
|
||||
git clone https://github.com/nomic-ai/gpt4all-ui.git ./GPT4All
|
||||
cd GPT4All
|
||||
echo Pulling latest changes
|
||||
git pull
|
||||
)
|
||||
|
||||
:GET_PERSONALITIES
|
||||
REM Download latest personalities
|
||||
|
13
webui.sh
13
webui.sh
@ -57,11 +57,16 @@ if [[ -d .git ]] ;then
|
||||
echo Pulling latest changes
|
||||
git pull origin main
|
||||
else
|
||||
echo Cloning repository...
|
||||
git clone https://github.com/nomic-ai/gpt4all-ui.git .
|
||||
git pull
|
||||
if [[ -d GPT4All ]] ;then
|
||||
cd GPT4All
|
||||
else
|
||||
echo Cloning repository...
|
||||
rem Clone the Git repository into a temporary directory
|
||||
git clone https://github.com/nomic-ai/gpt4all-ui.git ./GPT4All
|
||||
fi
|
||||
fi
|
||||
|
||||
echo Pulling latest version...
|
||||
git pull
|
||||
# Download latest personalities
|
||||
if ! test -d ./tmp/personalities; then
|
||||
git clone https://github.com/ParisNeo/GPT4All_Personalities.git ./tmp/personalities
|
||||
|
Loading…
Reference in New Issue
Block a user