castxml: Add version 0.4.4 (#3317)

* castxml: Add version 0.4.4

* castxml@0.4.4: Add checkver and autoupdate

* castxml@0.4.4: Fix autoupdate hash
This commit is contained in:
Kevin Gliewe 2022-02-23 16:28:20 +01:00 committed by GitHub
parent 4be4376d06
commit 786935d359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

33
bucket/castxml.json Normal file
View File

@ -0,0 +1,33 @@
{
"version": "0.4.4",
"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/617851942fa25629b9af396c/download#/castxml-windows.zip",
"hash": "sha512:82ff5a23f385a0fddcd76c62fa109eb3cd087d6ba61ff0bdcd55a31341bdf2b383446260d53a4d2fac7d778f4d29c383de0429804d2050f0fb743e44c315fd94"
}
},
"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"
}
}
}
}
}