{
    "version": "0.17.0-dev.21+5767f2f1",
    "description": "Zig language LSP server",
    "homepage": "https://github.com/zigtools/zls",
    "license": "MIT",
    "architecture": {
        "64bit": {
            "url": "https://builds.zigtools.org/zls-x86_64-windows-0.17.0-dev.21+5767f2f1.zip",
            "hash": "2f0b2901a354db81983ff541ec7ae0b7f53444d5a786a6fb6b2ff6348a4a9412"
        },
        "32bit": {
            "url": "https://builds.zigtools.org/zls-x86-windows-0.17.0-dev.21+5767f2f1.zip",
            "hash": "e30f47a6e60afae03b6627902ec57704016781fb38de9e2375c5f1c899c0c08c"
        },
        "arm64": {
            "url": "https://builds.zigtools.org/zls-aarch64-windows-0.17.0-dev.21+5767f2f1.zip",
            "hash": "97d16fbcf8e658fc0590688680f205950392e98428c0955717402a783f33130c"
        }
    },
    "bin": "zls.exe",
    "checkver": {
        "script": [
            "$zig_version_api = 'https://ziglang.org/download/index.json'",
            "$zig_version_api_response = Invoke-RestMethod -Uri $zig_version_api",
            "$zig_version = $zig_version_api_response.master.version.replace('+','%2B')",
            "$zls_version_api = \"https://releases.zigtools.org/v1/zls/select-version?zig_version=$zig_version&compatibility=only-runtime\"",
            "$zls_version_api_response = Invoke-RestMethod -Uri $zls_version_api",
            "$zls_version_api_response.version + ',' + $zig_version"
        ],
        "regex": "^(?<version>.*),(?<zig>.*)$"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://builds.zigtools.org/zls-x86_64-windows-$version.zip",
                "hash": {
                    "url": "https://releases.zigtools.org/v1/zls/select-version?zig_version=$matchZig&compatibility=only-runtime",
                    "jsonpath": "$.x86_64-windows.shasum"
                }
            },
            "32bit": {
                "url": "https://builds.zigtools.org/zls-x86-windows-$version.zip",
                "hash": {
                    "url": "https://releases.zigtools.org/v1/zls/select-version?zig_version=$matchZig&compatibility=only-runtime",
                    "jsonpath": "$.x86-windows.shasum"
                }
            },
            "arm64": {
                "url": "https://builds.zigtools.org/zls-aarch64-windows-$version.zip",
                "hash": {
                    "url": "https://releases.zigtools.org/v1/zls/select-version?zig_version=$matchZig&compatibility=only-runtime",
                    "jsonpath": "$.aarch64-windows.shasum"
                }
            }
        }
    }
}
