mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-22 08:13:22 +01:00
Only set the userprofile if in a new micromamba installation
This commit is contained in:
parent
a212fb35c1
commit
e252c9ac05
@ -12,10 +12,10 @@ set INSTALL_ENV_DIR=%cd%\installer_files\env
|
|||||||
set LEGACY_INSTALL_ENV_DIR=%cd%\installer
|
set LEGACY_INSTALL_ENV_DIR=%cd%\installer
|
||||||
set MICROMAMBA_DOWNLOAD_URL=https://github.com/cmdr2/stable-diffusion-ui/releases/download/v1.1/micromamba.exe
|
set MICROMAMBA_DOWNLOAD_URL=https://github.com/cmdr2/stable-diffusion-ui/releases/download/v1.1/micromamba.exe
|
||||||
set umamba_exists=F
|
set umamba_exists=F
|
||||||
set OLD_APPDATA=%APPDATA%
|
|
||||||
set APPDATA=%cd%\installer_files\appdata
|
|
||||||
|
|
||||||
@mkdir %cd%\profile
|
set OLD_APPDATA=%APPDATA%
|
||||||
|
set OLD_USERPROFILE=%USERPROFILE%
|
||||||
|
set APPDATA=%cd%\installer_files\appdata
|
||||||
set USERPROFILE=%cd%\profile
|
set USERPROFILE=%cd%\profile
|
||||||
|
|
||||||
@rem figure out whether git and conda needs to be installed
|
@rem figure out whether git and conda needs to be installed
|
||||||
@ -49,6 +49,7 @@ if "%PACKAGES_TO_INSTALL%" NEQ "" (
|
|||||||
@REM )
|
@REM )
|
||||||
|
|
||||||
mkdir "%APPDATA%"
|
mkdir "%APPDATA%"
|
||||||
|
mkdir "%USERPROFILE%"
|
||||||
|
|
||||||
@rem test the mamba binary
|
@rem test the mamba binary
|
||||||
echo Micromamba version:
|
echo Micromamba version:
|
||||||
@ -73,3 +74,4 @@ if "%PACKAGES_TO_INSTALL%" NEQ "" (
|
|||||||
|
|
||||||
@rem revert to the old APPDATA. only needed it for bypassing a bug in micromamba (with special characters)
|
@rem revert to the old APPDATA. only needed it for bypassing a bug in micromamba (with special characters)
|
||||||
set APPDATA=%OLD_APPDATA%
|
set APPDATA=%OLD_APPDATA%
|
||||||
|
set USERPROFILE=%OLD_USERPROFILE%
|
||||||
|
Loading…
Reference in New Issue
Block a user