Skip to content

Commit

Permalink
Merge pull request #232 from hmaarrfk/update_osx_image_version
Browse files Browse the repository at this point in the history
Update miniforge version used in installer for OSX
  • Loading branch information
hmaarrfk committed Dec 2, 2021
2 parents 0b4d427 + d36c4f7 commit b1a7935
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions build_miniforge_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,26 @@ set -e
set -x

echo "Installing a fresh version of Miniforge3."
MINIFORGE_URL="https://github.com/conda-forge/miniforge/releases/download/4.8.3-1"
MINIFORGE_FILE="Miniforge3-4.8.3-1-MacOSX-x86_64.sh"
curl -L -O "${MINIFORGE_URL}/${MINIFORGE_FILE}"
bash "${MINIFORGE_FILE}" -b
# Keep variable names in sync with
# https://github.com/conda-forge/docker-images/blob/main/scripts/run_commands
miniforge_arch="$(uname -m)"
miniforge_version="4.10.3-10"
condapkg="https://github.com/conda-forge/miniforge/releases/download/${miniforge_version}/Mambaforge-${miniforge_version}-MacOSX-${miniforge_arch}.sh"
if [ "$(uname -m)" = "x86_64" ]; then
conda_chksum="7c44259a0982cd3ef212649678af5f0dd4e0bb7306e8fffc93601dd1d739ec0b"
elif [ "$(uname -m)" = "arm64" ]; then
conda_chksum="72bc86612ab9435915b616c2edb076737cbabe2c33fd684d58c2f9ae72e1957c"
else
exit 1
fi
curl -s -L "$condapkg" > miniconda.sh
openssl sha256 miniconda.sh | grep $conda_chksum

bash miniconda.sh -b -p ~/conda

echo "Configuring conda."
# shellcheck disable=SC1090
source ~/miniforge3/bin/activate root
source ~/conda/bin/activate root

export CONSTRUCT_ROOT="${PWD}"
mkdir -p build
Expand Down

0 comments on commit b1a7935

Please sign in to comment.