diff --git a/Miniforge3/construct.yaml b/Miniforge3/construct.yaml index f09fdd46..d6fc1ed1 100644 --- a/Miniforge3/construct.yaml +++ b/Miniforge3/construct.yaml @@ -16,6 +16,7 @@ write_condarc: True # and keep the same with Miniconda keep_pkgs: True license_file: ../LICENSE +transmute_file_type: .conda specs: {% if name.endswith("pypy3") %} @@ -25,7 +26,7 @@ specs: {% endif %} {% if name.startswith("Mambaforge") %} - - mamba 0.20.0 + - mamba 0.21.0 {% endif %} - conda {{ version.split("-")[0] }} diff --git a/scripts/build.sh b/scripts/build.sh index 8b2bca19..421754d6 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -24,7 +24,7 @@ fi if [[ "${TARGET_PLATFORM}" == win-* ]]; then conda install -y "nsis=3.01" -c conda-forge --override-channels fi -pip install git+git://github.com/chrisburr/constructor@40c312c8d3f63f9a76b93bf347f05b8e1f7c8228#egg=constructor --force --no-deps +pip install git+git://github.com/chrisburr/constructor@51415f3d62091daae7d21dab84add91d3cc73039#egg=constructor --force --no-deps conda list echo "***** Make temp directory *****" @@ -41,7 +41,7 @@ cp LICENSE "${TEMP_DIR}/" ls -al "${TEMP_DIR}" if [[ "${TARGET_PLATFORM}" != win-* ]]; then - MICROMAMBA_VERSION=0.17.0 + MICROMAMBA_VERSION=0.21.0 mkdir "${TEMP_DIR}/micromamba" pushd "${TEMP_DIR}/micromamba" curl -L -O "https://anaconda.org/conda-forge/micromamba/${MICROMAMBA_VERSION}/download/${TARGET_PLATFORM}/micromamba-${MICROMAMBA_VERSION}-0.tar.bz2" @@ -57,8 +57,11 @@ if [[ "${TARGET_PLATFORM}" != win-* ]]; then fi echo "***** Construct the installer *****" +# Transmutation requires the current directory is writable +cd "${TEMP_DIR}" # shellcheck disable=SC2086 constructor "${TEMP_DIR}/Miniforge3/" --output-dir "${TEMP_DIR}" ${EXTRA_CONSTRUCTOR_ARGS} +cd - echo "***** Generate installer hash *****" cd "${TEMP_DIR}"