{
    "version": "26.3.2-2",
    "description": "A cross-platform, Python-agnostic binary package manager",
    "homepage": "https://docs.anaconda.com/miniconda/",
    "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-py313_26.3.2-2-Windows-x86_64.exe#/setup.exe",
            "hash": "fe980247dfd30af229a55d9505b57e7c8dfbdb9d24c5bc66fb6078b6a2d53414"
        }
    },
    "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": [
            "# Workaround for https://github.com/ScoopInstaller/Scoop/issues/4075#issuecomment-3010866414",
            "# Remove junction point before executing the uninstaller, otherwise all envs will be removed by the uninstaller.",
            "Invoke-ExternalCommand cmd -ArgumentList @('/c', 'rmdir', '/s', '/q', \"`\"$dir\\envs`\"\")",
            "# Executing the uninstaller:",
            "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-py(?<py>\\d{3})_([\\d.-]+)-Windows"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://repo.anaconda.com/miniconda/Miniconda3-py$matchPy_$version-Windows-x86_64.exe#/setup.exe"
            }
        },
        "hash": {
            "url": "https://repo.anaconda.com/miniconda/",
            "regex": "(?sm)$basename.*?>$sha256<"
        }
    }
}
