mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-01-26 17:09:44 +00:00
handle conda tos
This commit is contained in:
@@ -115,6 +115,12 @@ install_miniconda() {
|
|||||||
# Activate Conda environment
|
# Activate Conda environment
|
||||||
source "$HOME/miniconda/etc/profile.d/conda.sh"
|
source "$HOME/miniconda/etc/profile.d/conda.sh"
|
||||||
|
|
||||||
|
# Accept the Anaconda Terms of Service for all main channels
|
||||||
|
echo -e "${blue_fg_strong}[INFO] Accepting Anaconda Terms of Service...${reset}"
|
||||||
|
|
||||||
|
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
|
||||||
|
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
|
||||||
|
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/msys2
|
||||||
# Clean up the Downloaded file
|
# Clean up the Downloaded file
|
||||||
rm /tmp/miniconda_installer.sh
|
rm /tmp/miniconda_installer.sh
|
||||||
|
|
||||||
|
|||||||
@@ -245,10 +245,21 @@ if %errorlevel% neq 0 (
|
|||||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing Miniconda3...
|
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing Miniconda3...
|
||||||
start /wait %bin_dir%\Miniconda3-latest-Windows-x86_64.exe /InstallationType=JustMe /RegisterPython=0 /AddToPath=1 /S
|
start /wait %bin_dir%\Miniconda3-latest-Windows-x86_64.exe /InstallationType=JustMe /RegisterPython=0 /AddToPath=1 /S
|
||||||
|
|
||||||
|
REM Activate the Miniconda installation
|
||||||
|
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Activating Miniconda environment...
|
||||||
|
call "%miniconda_path%\Scripts\activate.bat"
|
||||||
|
|
||||||
|
REM Accept the Anaconda Terms of Service for all main channels
|
||||||
|
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Accepting Anaconda Terms of Service...
|
||||||
|
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
|
||||||
|
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
|
||||||
|
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/msys2
|
||||||
|
|
||||||
|
REM Clean up the installer
|
||||||
|
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Cleaning up Miniconda3 installer...
|
||||||
del %bin_dir%\Miniconda3-latest-Windows-x86_64.exe
|
del %bin_dir%\Miniconda3-latest-Windows-x86_64.exe
|
||||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Miniconda3 installed successfully.%reset%
|
|
||||||
|
|
||||||
|
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Miniconda3 installed successfully.%reset%
|
||||||
) else (
|
) else (
|
||||||
echo [ %green_fg_strong%OK%reset% ] Found app command: %cyan_fg_strong%conda%reset% from app: Miniconda3
|
echo [ %green_fg_strong%OK%reset% ] Found app command: %cyan_fg_strong%conda%reset% from app: Miniconda3
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user