{
    "version": "23.1.0-1",
    "description": "A cross-platform, Python-agnostic binary package manager",
    "homepage": "https://conda.io/miniconda.html",
    "license": "BSD-3-Clause",
    "notes": [
        "From 4.6.0, conda has built the support for Cmd, Powershell or other shells.",
        "Use \"conda init powershell\" or \"conda init __your_favorite_shell__\"",
        "",
        "Miniconda3 drops support for 32-bit CPUs from v22.9.0. If you are running a 32-bit system, please install miniconda3-4.12.0 from the Versions bucket."
    ],
    "architecture": {
        "64bit": {
            "url": "https://repo.anaconda.com/miniconda/Miniconda3-py37_23.1.0-1-Windows-x86_64.exe#/setup.exe",
            "hash": "2319e6ab37215daf08f47b0da35a53f6a648121029113ae2ba53917d777b84bd"
        }
    },
    "pre_install": "if ($dir -match ' ') { error 'The installation directory cannot include a space'; break}",
    "installer": {
        "script": [
            "# Using Start-Process as a workaround because the installer will not work properly when args are quoted (e.g. \"`\"/S`\"\")",
            "# Move the installer to the upper directory to avoid the error \"The installatiom directory is not empty.\"",
            "Move-Item \"$dir\\setup.exe\" \"$dir\\..\\setup.exe\" | Out-Null",
            "Start-Process \"$dir\\..\\setup.exe\" -ArgumentList @('/S', '/InstallationType=JustMe', '/RegisterPython=0', '/AddToPath=0', '/NoRegistry=1', \"/D=$dir\") -Wait | Out-Null"
        ]
    },
    "post_install": "Remove-Item \"$dir\\..\\setup.exe\" -Force | Out-Null",
    "uninstaller": {
        "script": [
            "Start-Process \"$dir\\Uninstall-Miniconda3.exe\" -ArgumentList '/S' -Wait | Out-Null",
            "# Create a 'dummy' to avoid error because the uninstaller removes the symlink. The does not affect persist.",
            "if (!(Test-Path \"$dir\\envs\")) { New-Item \"$dir\\envs\" -ItemType Directory | Out-Null }"
        ]
    },
    "bin": [
        "python.exe",
        "pythonw.exe",
        [
            "python.exe",
            "python3"
        ]
    ],
    "env_add_path": [
        "scripts",
        "Library\\bin"
    ],
    "persist": "envs",
    "checkver": {
        "url": "https://repo.anaconda.com/miniconda/",
        "regex": "Miniconda3-py37_([\\d.-]+)-Windows"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://repo.anaconda.com/miniconda/Miniconda3-py37_$version-Windows-x86_64.exe#/setup.exe"
            }
        },
        "hash": {
            "url": "https://repo.anaconda.com/miniconda/",
            "regex": "(?sm)$basename.*?>$sha256<"
        }
    }
}
