{
    "version": "0.6.5",
    "description": "C-family abstract syntax tree XML output tool.",
    "homepage": "https://github.com/CastXML/CastXML",
    "license": "Apache-2.0",
    "architecture": {
        "64bit": {
            "url": "https://data.kitware.com/api/v1/item/661c93145165b19d36c87da8/download#/castxml-windows.zip",
            "hash": "sha512:7c1970ad6f2e5f06a8704606db92df3400c4cd9716f88cac604924430c7e6865f8256a67282d28005714f0ed0a42f7f6e386f24ce80fb075371902d35674c6cc"
        }
    },
    "bin": "castxml\\bin\\castxml.exe",
    "checkver": {
        "script": [
            "$folder = Invoke-RestMethod -Uri 'https://data.kitware.com/api/v1/folder?parentType=folder&parentId=57b5de948d777f10f2696370&sort=lowerName&sortdir=-1' |",
            "    Where-Object { $_.name -match 'v\\d+\\.\\d+\\.\\d+' }",
            "$file = Invoke-RestMethod -Uri \"https://data.kitware.com/api/v1/item?folderId=$($folder[0]._id)&name=castxml-windows.zip\"",
            "Write-Output $folder[0].name $file[0]._id"
        ],
        "regex": "v([\\d.]+)\\s(?<fileid>.+)"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://data.kitware.com/api/v1/item/$matchFileid/download#/castxml-windows.zip",
                "hash": {
                    "url": "https://data.kitware.com/api/v1/item/$matchFileid/files",
                    "regex": "sha512.*$sha512"
                }
            }
        }
    }
}
