mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-03 15:21:18 +00:00
34 lines
1.4 KiB
JSON
34 lines
1.4 KiB
JSON
{
|
|
"version": "0.4.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/622961504acac99f42134aab/download#/castxml-windows.zip",
|
|
"hash": "sha512:56cf92eb9ca543a6178689643d32a455da1f92da78ca58a8cb671798ac9f903dc6b687be1d3824ab0211ed49724b62185a21874810139de7dbb6cb39f63b860f"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|