Get download url from JSON file #5653
Answered
by
rashil2000
Birdie0
asked this question in
Help and Questions
-
Can I extract download url from JSON file with JSONPath in the same way I can do that with hash or version? Example JSON: {
"version": "1.2.3",
"md5": "4738b33da0417b39857b6856e3f9a49b",
"url": "https://example.com/files/{random-letters}.zip"
}
App manifest file: {
"version": "1.2.3",
"description": "test",
"homepage": "https://example.com",
"license": "Freeware",
"url": "https://example.com/files/aaaa.zip",
"hash": "md5:4738b33da0417b39857b6856e3f9a49b",
"bin": "app.exe",
"shortcuts": [
[
"app.exe",
"App"
]
],
"checkver": {
"url": "https://example.com/check.json",
"jsonpath": "$.version"
},
"autoupdate": {
// "url": "https://example.com/check.json",
// "jsonpath": "$.url",
"hash": {
"url": "https://example.com/check.json",
"jsonpath": "$.md5"
}
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
rashil2000
Oct 2, 2023
Replies: 1 comment 1 reply
-
No, the autoupdate URL is a string that contains substitution variables - it does not use checkver's extraction logic. However, you can use the checkver field itself, to fetch both the URL and the version. See https://github.com/ScoopInstaller/Main/blob/master/bucket/gcc.json for example. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Birdie0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, the autoupdate URL is a string that contains substitution variables - it does not use checkver's extraction logic.
However, you can use the checkver field itself, to fetch both the URL and the version. See https://github.com/ScoopInstaller/Main/blob/master/bucket/gcc.json for example.