File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ jobs:
2323
2424 $ver = ($response | select-string '"tag_name":').Line.split("`"")[3].Trim('v')
2525
26- $zip = ($response | Where-Object { $_ -like "*.zip`"" } | Select-Object -Last 1).Split("`"")[3]
27- $exe = ($response | Where-Object { $_ -like "*.exe`"" } | Select-Object -Last 1).Split("`"")[3]
26+ $zip = ($response | Where-Object { $_ -like "*x64 .zip`"" } | Select-Object -Last 1).Split("`"")[3]
27+ $exe = ($response | Where-Object { $_ -like "*x64 .exe`"" } | Select-Object -Last 1).Split("`"")[3]
2828
2929 $pattern = '(?s)(?<=<!--HASH-->).*?(?=<!--ENDHASH-->)'
3030 $hash = (($response | select-string '"body"').Line | Select-String -Pattern $pattern | ForEach-Object { $_.Matches.Value.Trim() }).Split("\r\n")
31- $ziphash = ($hash | select-string "ZIP").Line.Split('|')[1]
32- $exehash = ($hash | select-string "EXE").Line.Split('|')[1]
31+ $ziphash = ($hash | select-string "x64- ZIP").Line.Split('|')[1]
32+ $exehash = ($hash | select-string "x64- EXE").Line.Split('|')[1]
3333
3434 # chocolatey
3535 echo $ver $zip $ziphash
You can’t perform that action at this time.
0 commit comments