2022-09-09 17:32:33 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-09-10 17:34:06 +02:00
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
|
2023-01-19 00:40:20 +01:00
|
|
|
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
|
2023-08-30 09:39:12 +02:00
|
|
|
echo https://easydiffusion.github.io/docs/installation/
|
2023-01-19 00:40:20 +01:00
|
|
|
echo
|
|
|
|
echo ================================================================================
|
|
|
|
echo
|
|
|
|
read
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-05-09 18:07:46 +02:00
|
|
|
unset PYTHONHOME
|
2023-01-19 00:40:20 +01:00
|
|
|
|
2022-10-22 19:54:13 +02:00
|
|
|
# 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
|
|
|
|
2022-10-22 19:54:13 +02:00
|
|
|
# Setup the packages required for the installer
|
2022-11-05 18:59:59 +01:00
|
|
|
scripts/bootstrap.sh || exit 1
|
2022-09-03 14:38:52 +02:00
|
|
|
|
2022-10-22 19:54:13 +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
|
2022-11-05 18:59:59 +01:00
|
|
|
git --version || exit 1
|
2022-09-15 11:44:48 +02:00
|
|
|
|
2022-10-22 19:54:13 +02:00
|
|
|
which conda
|
2022-11-05 18:59:59 +01:00
|
|
|
conda --version || exit 1
|
2022-10-22 19:54:13 +02:00
|
|
|
|
|
|
|
# Download the rest of the installer and UI
|
2022-12-28 17:52:49 +01:00
|
|
|
chmod +x scripts/*.sh
|
2022-09-03 14:25:38 +02:00
|
|
|
scripts/on_env_start.sh
|