Skip to content

Commit b1a7935

Browse files
authored
Merge pull request #232 from hmaarrfk/update_osx_image_version
Update miniforge version used in installer for OSX
2 parents 0b4d427 + d36c4f7 commit b1a7935

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

build_miniforge_osx.sh

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,26 @@ set -e
44
set -x
55

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

1224
echo "Configuring conda."
1325
# shellcheck disable=SC1090
14-
source ~/miniforge3/bin/activate root
26+
source ~/conda/bin/activate root
1527

1628
export CONSTRUCT_ROOT="${PWD}"
1729
mkdir -p build

0 commit comments

Comments
 (0)