mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-08-28 09:06:46 +00:00
feat(checkver): Present script property (#3900)
This commit is contained in:
+4
-1
@@ -196,8 +196,11 @@ while ($in_progress -gt 0) {
|
||||
$expected_ver = $json.version
|
||||
$ver = ''
|
||||
|
||||
$err = $ev.SourceEventArgs.Error
|
||||
$page = $ev.SourceEventArgs.Result
|
||||
$err = $ev.SourceEventArgs.Error
|
||||
if ($json.checkver.script) {
|
||||
$page = $json.checkver.script -join "`r`n" | Invoke-Expression
|
||||
}
|
||||
|
||||
if ($err) {
|
||||
next "$($err.message)`r`nURL $url is not valid"
|
||||
|
||||
@@ -260,6 +260,10 @@
|
||||
},
|
||||
"useragent": {
|
||||
"type": "string"
|
||||
},
|
||||
"script": {
|
||||
"$ref": "#/definitions/stringOrArrayOfStrings",
|
||||
"description": "Custom PowerShell script to retrieve application version using more complex approach."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
||||
Reference in New Issue
Block a user