Merge pull request #537 from blu3knight/macos-install-script

Update macos_install.sh
This commit is contained in:
Saifeddine ALOUI 2024-05-11 18:19:12 +02:00 committed by GitHub
commit 069278f106
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,10 @@
# This script will install Miniconda and git with all dependencies for this # This script will install Miniconda and git with all dependencies for this
# project. This enables a user to install this project without manually # project. This enables a user to install this project without manually
# installing Conda and git. # installing Conda and git.
#
# Introdusing Versions so can troubleshoot problems with script faster
# Version: 2.2
echo " ___ ___ ___ ___ ___ ___ " echo " ___ ___ ___ ___ ___ ___ "
echo " /\__\ /\ \ /\__\ /\__\ /\__\ /\ \ " echo " /\__\ /\ \ /\__\ /\__\ /\__\ /\ \ "
@ -182,24 +186,15 @@ done < requirements.txt
# Install the pip requirements # Install the pip requirements
python -m pip install -r requirements.txt --upgrade python -m pip install -r requirements.txt --upgrade
if [[ -e "$INSTALL_DIR/macos_run.sh" ]]; then # The Following section creates the links to the install directory
echo "Macos run found" # scripts vs copying the scripts.
else
cp $INSTALL_DIR/lollms-webui/scripts/macos/macos_run.sh $INSTALL_DIR/
fi
# Macos_update.sh is no longer available on github skipping # Linking to the macos_run.sh script
#if [[ -e "$INSTALL_DIR/macos_update.sh" ]]; then cd $INSTALL_DIR
# echo "Macos update found" ln -s lollms-webui/scripts/macos/macos_run.sh macos_run.sh
#else
# cp $INSTALL_DIR/lollms-webui/scripts/macos/macos_update.sh $INSTALL_DIR/
#fi
if [[ -e "$INSTALL_DIR/macos_conda_session.sh" ]]; then # Linking to the macos_conda_sessions.sh
echo "Macos conda session found" ln -s lollms-webui/scripts/macos/macos_conda_session.sh macos_conda_session.sh
else
cp $INSTALL_DIR/lollms-webui/scripts/macos/macos_conda_session.sh $INSTALL_DIR/
fi
echo "Select the default binding to be installed:" echo "Select the default binding to be installed:"
options=("None (install the binding later)" "Local binding - ollama" "Local binding - python_llama_cpp" "Local binding - bs_exllamav2" "Remote binding - open_router" "Remote binding - open_ai" "Remote binding - mistral_ai") options=("None (install the binding later)" "Local binding - ollama" "Local binding - python_llama_cpp" "Local binding - bs_exllamav2" "Remote binding - open_router" "Remote binding - open_ai" "Remote binding - mistral_ai")