Update chocolately.yml

?
This commit is contained in:
Lin Yu-Chieh (Victor) 2022-12-23 23:42:41 +08:00 committed by GitHub
parent 80e6dd3fb0
commit 63e5e70275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ jobs:
rm .git -Recurse -Force -Confirm:$false
$response=curl.exe -s https://api.github.com/repos/lin-ycv/everythingpowertoys/releases/latest
$browser=($response | select-string "browser_").Line
if($browser.Count -gt 1){ $browser=$browser[$browser.Count-1] }
if($browser.Count > 1){ $browser=$browser[-1] }
$url=$browser.Split("`"")[3]
$ver=($response | select-string '"name":').Line[0].Split("`"")[3].Split(" ")[0].substring(1)
Invoke-WebRequest $url -O e.zip