2022-11-22 20:26:46 +00:00

34 lines
1.4 KiB
JSON

{
"version": "0.4.8",
"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/637d2d6411dab8142820b935/download#/castxml-windows.zip",
"hash": "sha512:5ad9e16bd2aadefff408e53d8b733597757788256640f9614393205713890dca881b490674c28866f79ca49aba7a42482f1e0fd30f90fead8abe852ef9d10f4f"
}
},
"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"
}
}
}
}
}