Initial commit of the new micromamba-based installer; This should work seamlessly for new and existing users; Also allows the installer to run on mac (but the installation will fail because the mac-specific environment.yaml hasn't been added yet)

This commit is contained in:
cmdr2
2022-10-22 23:24:13 +05:30
parent 5ee05e3aaa
commit cc356ce67d
10 changed files with 194 additions and 27 deletions

View File

@ -2,13 +2,24 @@
echo "Opening Stable Diffusion UI - Developer Console.." & echo.
@call installer\Scripts\activate.bat
set PATH=C:\Windows\System32;%PATH%
@call conda-unpack
@rem set legacy and new installer's PATH, if they exist
if exist "installer" set PATH=%cd%\installer;%cd%\installer\Library\bin;%cd%\installer\Scripts;%PATH%
if exist "installer_files\env" set PATH=%cd%\installer_files\env;%cd%\installer_files\env\Library\bin;%cd%\installer_files\env\Scripts;%PATH%
@call conda --version
@call git --version
@rem Test the environment
echo "Environment Info:"
call where git
call git --version
@call conda activate .\stable-diffusion\env
call where python
call python --version
call where conda
call conda --version
@rem activate the environment
call conda activate .\stable-diffusion\env
cmd /k