easydiffusion/scripts/start.sh

43 lines
1.2 KiB
Bash
Raw Normal View History

#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")"
if [ -f "on_sd_start.bat" ]; then
echo ================================================================================
echo
echo !!!! WARNING !!!!
echo
echo It looks like you\'re trying to run the installation script from a source code
echo download. This will not work.
echo
echo Recommended: Please close this window and download the installer from
echo https://easydiffusion.github.io/docs/installation/
echo
echo ================================================================================
echo
read
exit 1
fi
2023-05-09 18:07:46 +02:00
unset PYTHONHOME
# set legacy installer's PATH, if it exists
if [ -e "installer" ]; then export PATH="$(pwd)/installer/bin:$PATH"; fi
2022-09-03 14:25:38 +02:00
# Setup the packages required for the installer
scripts/bootstrap.sh || exit 1
2022-09-03 14:38:52 +02:00
# set new installer's PATH, if it downloaded any packages
if [ -e "installer_files/env" ]; then export PATH="$(pwd)/installer_files/env/bin:$PATH"; fi
# Test the bootstrap
which git
git --version || exit 1
which conda
conda --version || exit 1
# Download the rest of the installer and UI
chmod +x scripts/*.sh
2022-09-03 14:25:38 +02:00
scripts/on_env_start.sh