mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-05 08:11:20 +00:00
Add jsonpath support for checkver and hash extraction
Unravel if-blocks in checkver Use new jsonpath for openssl, nuget, dart and bfg
This commit is contained in:
parent
a454e72f69
commit
10a416552e
4
bfg.json
4
bfg.json
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"homepage": "https://rtyley.github.io/bfg-repo-cleaner/",
|
"homepage": "https://rtyley.github.io/bfg-repo-cleaner/",
|
||||||
"license": "GPL",
|
"license": "GPL",
|
||||||
"version": "1.12.15",
|
"version": "1.12.14",
|
||||||
"url": "https://repo1.maven.org/maven2/com/madgag/bfg/1.12.15/bfg-1.12.15.jar",
|
"url": "https://repo1.maven.org/maven2/com/madgag/bfg/1.12.15/bfg-1.12.15.jar",
|
||||||
"hash": "330af214a0fed320c591afc1046b0f31e8a438f290da09672973aeaa6411b09d",
|
"hash": "330af214a0fed320c591afc1046b0f31e8a438f290da09672973aeaa6411b09d",
|
||||||
"suggest": {
|
"suggest": {
|
||||||
@ -17,7 +17,7 @@
|
|||||||
",
|
",
|
||||||
"checkver": {
|
"checkver": {
|
||||||
"url": "https://search.maven.org/solrsearch/select/?q=g:com.madgag+AND+a:bfg",
|
"url": "https://search.maven.org/solrsearch/select/?q=g:com.madgag+AND+a:bfg",
|
||||||
"re": "\"latestVersion\":\"([\\d.]+)\""
|
"jp": "$.response.docs[0].latestVersion"
|
||||||
},
|
},
|
||||||
"autoupdate": {
|
"autoupdate": {
|
||||||
"url": "https://repo1.maven.org/maven2/com/madgag/bfg/$version/bfg-$version.jar"
|
"url": "https://repo1.maven.org/maven2/com/madgag/bfg/$version/bfg-$version.jar"
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
},
|
},
|
||||||
"checkver": {
|
"checkver": {
|
||||||
"url": "https://storage.googleapis.com/dart-archive/channels/stable/release/latest/VERSION",
|
"url": "https://storage.googleapis.com/dart-archive/channels/stable/release/latest/VERSION",
|
||||||
"re": "\"version\":\\s*\"(.*)\","
|
"jp": "$.version"
|
||||||
},
|
},
|
||||||
"autoupdate": {
|
"autoupdate": {
|
||||||
"architecture": {
|
"architecture": {
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"homepage": "https://www.nuget.org/",
|
"homepage": "https://www.nuget.org/",
|
||||||
"version": "3.5.0",
|
"version": "3.4.1",
|
||||||
"license": "Apache 2.0",
|
"license": "Apache 2.0",
|
||||||
"url": "https://dist.nuget.org/win-x86-commandline/v3.5.0/NuGet.exe",
|
"url": "https://dist.nuget.org/win-x86-commandline/v3.5.0/NuGet.exe",
|
||||||
"hash": "399ec24c26ed54d6887cde61994bb3d1cada7956c1b19ff880f06f060c039918",
|
"hash": "399ec24c26ed54d6887cde61994bb3d1cada7956c1b19ff880f06f060c039918",
|
||||||
"bin": "NuGet.exe",
|
"bin": "NuGet.exe",
|
||||||
"checkver": {
|
"checkver": {
|
||||||
"url": "https://dist.nuget.org/index.json",
|
"url": "https://dist.nuget.org/index.json",
|
||||||
"re": "latest\", \"version\": \"([\\d.]+)\""
|
"jp": "$.artifacts[0].versions[0].version"
|
||||||
},
|
},
|
||||||
"autoupdate": {
|
"autoupdate": {
|
||||||
"url": "https://dist.nuget.org/win-x86-commandline/v$version/NuGet.exe"
|
"url": "https://dist.nuget.org/win-x86-commandline/v$version/NuGet.exe"
|
||||||
|
|||||||
@ -29,8 +29,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hash": {
|
"hash": {
|
||||||
"mode": "extract",
|
"mode": "json",
|
||||||
"find": "$basename.*\\s.*\\s.*\\s.*\\s.*\"([\\da-f]{64})\"",
|
"jp": "$.files.$basename.sha256",
|
||||||
"url": "https://slproweb.com/download/win32_openssl_hashes.json"
|
"url": "https://slproweb.com/download/win32_openssl_hashes.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user