mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-09 18:21:22 +00:00
34 lines
1.4 KiB
JSON
34 lines
1.4 KiB
JSON
{
|
|
"version": "0.4.6",
|
|
"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/6337040411dab81428208759/download#/castxml-windows.zip",
|
|
"hash": "sha512:04f61af273d02ad8b42b69dd75bb1f3d7512f6befec9a186e6590595f3b108e4c14cb49eec6020f881e9d885bf96d6b3b951dc05af8da0275aad66c4d70a34e0"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|