{
    "version": "2026.04.27",
    "description": "C/C++ dependency manager from Microsoft For all platforms, buildsystems, and workflows",
    "homepage": "https://vcpkg.io/",
    "license": "MIT",
    "suggest": {
        "Git": "git"
    },
    "url": "https://github.com/microsoft/vcpkg/archive/refs/tags/2026.04.27.zip",
    "hash": "a6b19adc997806d91557c1dbb61cd4b916d88059d86e5eebd6b84da4e7f80e15",
    "extract_dir": "vcpkg-2026.04.27",
    "pre_install": [
        "if (Get-Command \"git.exe\" -ErrorAction SilentlyContinue) {",
        "    if (!(Test-Path \"$persist_dir\")) {",
        "        New-Item -ItemType Directory -Path \"$persist_dir\" | Out-Null",
        "    }",
        "    if (!(Test-Path \"$persist_dir\\.git\")) {",
        "        git -C \"$dir\" init --quiet --separate-git-dir \"$persist_dir\\.git\"",
        "        git -C \"$dir\" remote add -t master origin https://github.com/microsoft/vcpkg",
        "    } else {",
        "        Write-Output \"gitdir: $persist_dir\\.git\" | Out-File -FilePath \"$dir\\.git\"",
        "    }",
        "    git -C \"$dir\" fetch --quiet --tags",
        "    git -C \"$dir\" reset --quiet --hard $version",
        "} else {",
        "    Write-Host -F Yellow \"Git was not detected in PATH, skipping repository setup.\"",
        "}"
    ],
    "installer": {
        "file": "bootstrap-vcpkg.bat",
        "args": "-disableMetrics",
        "keep": true
    },
    "post_install": "vcpkg integrate install",
    "uninstaller": {
        "script": "vcpkg integrate remove"
    },
    "bin": "vcpkg.exe",
    "env_set": {
        "VCPKG_ROOT": "$dir"
    },
    "persist": [
        "buildtrees",
        "downloads",
        "installed",
        "packages"
    ],
    "checkver": {
        "github": "https://github.com/microsoft/vcpkg/"
    },
    "autoupdate": {
        "url": "https://github.com/microsoft/vcpkg/archive/refs/tags/$version.zip",
        "extract_dir": "vcpkg-$version"
    }
}
