upgraded installation script

This commit is contained in:
Saifeddine ALOUI 2023-04-22 20:30:55 +02:00
parent 95c1e24d9b
commit d7602c7158
2 changed files with 30 additions and 11 deletions

View File

@ -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

View File

@ -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