2022-09-26 15:49:11 +02:00
|
|
|
@echo off
|
|
|
|
|
2022-11-05 23:30:40 +01:00
|
|
|
cd /d %~dp0
|
2023-01-18 00:11:23 +01:00
|
|
|
echo Install dir: %~dp0
|
|
|
|
|
2022-10-22 19:54:13 +02:00
|
|
|
set PATH=C:\Windows\System32;%PATH%
|
2022-09-26 15:49:11 +02:00
|
|
|
|
2023-01-18 00:11:23 +01:00
|
|
|
if exist "on_sd_start.bat" (
|
|
|
|
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.
|
|
|
|
pause
|
2023-01-19 00:40:20 +01:00
|
|
|
exit /b
|
2023-01-18 00:11:23 +01:00
|
|
|
)
|
|
|
|
|
2022-10-22 19:54:13 +02:00
|
|
|
@rem set legacy installer's PATH, if it exists
|
2022-10-23 06:53:43 +02:00
|
|
|
if exist "installer" set PATH=%cd%\installer;%cd%\installer\Library\bin;%cd%\installer\Scripts;%cd%\installer\Library\usr\bin;%PATH%
|
2022-09-15 11:44:48 +02:00
|
|
|
|
2022-10-22 19:54:13 +02:00
|
|
|
@rem Setup the packages required for the installer
|
|
|
|
call scripts\bootstrap.bat
|
2022-09-15 11:44:48 +02:00
|
|
|
|
2022-10-22 19:54:13 +02:00
|
|
|
@rem set new installer's PATH, if it downloaded any packages
|
2022-10-23 06:53:43 +02:00
|
|
|
if exist "installer_files\env" set PATH=%cd%\installer_files\env;%cd%\installer_files\env\Library\bin;%cd%\installer_files\env\Scripts;%cd%\installer_files\Library\usr\bin;%PATH%
|
2022-09-15 11:44:48 +02:00
|
|
|
|
2022-11-11 07:07:15 +01:00
|
|
|
set PYTHONPATH=%cd%\installer;%cd%\installer_files\env
|
|
|
|
|
2022-10-22 19:54:13 +02:00
|
|
|
@rem Test the bootstrap
|
|
|
|
call where git
|
|
|
|
call git --version
|
2022-09-26 15:49:11 +02:00
|
|
|
|
2022-10-22 19:54:13 +02:00
|
|
|
call where conda
|
|
|
|
call conda --version
|
|
|
|
|
|
|
|
@rem Download the rest of the installer and UI
|
|
|
|
call scripts\on_env_start.bat
|
2022-09-15 11:44:48 +02:00
|
|
|
|
2022-09-26 16:42:55 +02:00
|
|
|
@pause
|