mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-01 22:31:19 +00:00
* castxml: Add version 0.4.4 * castxml@0.4.4: Add checkver and autoupdate * castxml@0.4.4: Fix autoupdate hash
34 lines
1.4 KiB
JSON
34 lines
1.4 KiB
JSON
{
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|