This commit is contained in:
Saifeddine ALOUI 2024-01-30 00:48:04 +01:00
parent cd202fd74f
commit 8deca00972
2 changed files with 5 additions and 6 deletions

View File

@ -3,12 +3,13 @@ set MINICONDA_DIR=%cd%\installer_files\miniconda3
set INSTALL_ENV_DIR=%cd%\installer_files\xtts
:: Check if portable Conda is installed
IF EXIST ".\installer_files\miniconda3\Scripts\activate.bat" (
IF EXIST "%MINICONDA_DIR%\Scripts\activate.bat" (
echo "Using portable Conda installation."
echo %MINICONDA_DIR%
echo "%MINICONDA_DIR%"
@rem create the installer env
if exist "%INSTALL_ENV_DIR%" (
echo "found"
rmdir "%INSTALL_ENV_DIR%" /s /q
)
echo Packages to install: %PACKAGES_TO_INSTALL%

View File

@ -1,11 +1,9 @@
@echo off
setlocal
cd
set MINICONDA_DIR=%cd%\installer_files\miniconda3
set INSTALL_ENV_DIR=%cd%\installer_files\xtts
:: Check if portable Conda is installed
IF EXIST ".\installer_files\miniconda3\Scripts\activate.bat" (
echo "Using portable Conda installation."
set MINICONDA_DIR=%cd%\installer_files\miniconda3
set INSTALL_ENV_DIR=%cd%\installer_files\xtts
@rem activate miniconda
call "%MINICONDA_DIR%\Scripts\activate.bat" || ( echo Miniconda hook not found. && goto end )
@rem activate installer env