Skip to content

Commit

Permalink
Update action to target x64
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-ycv committed Jul 3, 2024
1 parent 3841365 commit 80d1d9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/packageManagers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
$ver = ($response | select-string '"tag_name":').Line.split("`"")[3].Trim('v')
$zip = ($response | Where-Object { $_ -like "*.zip`"" } | Select-Object -Last 1).Split("`"")[3]
$exe = ($response | Where-Object { $_ -like "*.exe`"" } | Select-Object -Last 1).Split("`"")[3]
$zip = ($response | Where-Object { $_ -like "*x64.zip`"" } | Select-Object -Last 1).Split("`"")[3]
$exe = ($response | Where-Object { $_ -like "*x64.exe`"" } | Select-Object -Last 1).Split("`"")[3]
$pattern = '(?s)(?<=<!--HASH-->).*?(?=<!--ENDHASH-->)'
$hash = (($response | select-string '"body"').Line | Select-String -Pattern $pattern | ForEach-Object { $_.Matches.Value.Trim() }).Split("\r\n")
$ziphash = ($hash | select-string "ZIP").Line.Split('|')[1]
$exehash = ($hash | select-string "EXE").Line.Split('|')[1]
$ziphash = ($hash | select-string "x64-ZIP").Line.Split('|')[1]
$exehash = ($hash | select-string "x64-EXE").Line.Split('|')[1]
# chocolatey
echo $ver $zip $ziphash
Expand Down

0 comments on commit 80d1d9d

Please sign in to comment.