File size: 1,168 Bytes
0a21a41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/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://stable-diffusion-ui.github.io/docs/installation/
    echo
    echo ================================================================================
    echo
    read
    exit 1
fi


# set legacy installer's PATH, if it exists
if [ -e "installer" ]; then export PATH="$(pwd)/installer/bin:$PATH"; fi

# Setup the packages required for the installer
scripts/bootstrap.sh || exit 1

# 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
scripts/on_env_start.sh