From 02d0bf128ccdb92371aba3725f3410348ad558cf Mon Sep 17 00:00:00 2001 From: deffcolony Date: Sat, 22 Nov 2025 16:16:07 +0100 Subject: [PATCH] handle conda tos --- install.sh | 6 ++++++ installer.bat | 13 ++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 3faae96..7e8d04f 100755 --- a/install.sh +++ b/install.sh @@ -115,6 +115,12 @@ install_miniconda() { # Activate Conda environment 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 rm /tmp/miniconda_installer.sh diff --git a/installer.bat b/installer.bat index c838703..a40ad93 100644 --- a/installer.bat +++ b/installer.bat @@ -245,10 +245,21 @@ if %errorlevel% neq 0 ( 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 + 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 - 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 ( echo [ %green_fg_strong%OK%reset% ] Found app command: %cyan_fg_strong%conda%reset% from app: Miniconda3 )