File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ jobs:
363363 update-aur :
364364 name : update-aur
365365 runs-on : ubuntu-22.04
366- needs : [cli-ubuntu-arm64, cli-ubuntu-x64]
366+ needs : [update-chocolatey, cli-ubuntu-arm64, cli-ubuntu-x64]
367367 if : github.ref_type == 'tag'
368368 steps :
369369 - name : Checkout
@@ -407,7 +407,7 @@ jobs:
407407 update-homebrew :
408408 name : update-homebrew
409409 runs-on : ubuntu-22.04
410- needs : [cli-macos-x64, cli-macos-arm64]
410+ needs : [update-chocolatey, cli-macos-x64, cli-macos-arm64]
411411 if : github.ref_type == 'tag'
412412 steps :
413413 - name : Checkout source repo
Original file line number Diff line number Diff line change 11SET script_dir = %~dp0
22SET version = %~1
33SET choco_api_key = %~2
4- SET path_to_archive = %~3
54if not defined version SET version = 1.0.0
6- pwsh.exe -noprofile -executionpolicy bypass -file %script_dir% chocolatey.ps1 -Version %version% -ChocolateyApiKey %choco_api_key% -PathToArchive %path_to_archive%
5+ pwsh.exe -noprofile -executionpolicy bypass -file %script_dir% chocolatey.ps1 -Version %version% -ChocolateyApiKey %choco_api_key%
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ $releaseResponse = Invoke-RestMethod @getReleaseSplat
2424$winAssetX64 = $releaseResponse.assets | Where-Object {$_.name -like ' *+win.x64*' } | Select-Object - First 1
2525$winAssetX64Sha256 = $winAssetX64.digest -replace ' sha256:' , ' '
2626
27+ $winAssetArm64 = $releaseResponse.assets | Where-Object {$_.name -like ' *+win.arm64*' } | Select-Object - First 1
28+ $winAssetArm64Sha256 = $winAssetArm64.digest -replace ' sha256:' , ' '
29+
2730# region chocolatey
2831if (Get-Command choco) {
2932 $chocoNuspec = @"
@@ -44,8 +47,14 @@ if (Get-Command choco) {
4447"@
4548 $chocoInstall = @"
4649`$ packageName = 'stalker-gamma'
47- `$ url = 'https://github.com/FaithBeam/stalker-gamma-cli/releases/download/$ ( $Version ) /$ ( $winAssetX64.name ) '
48- `$ checksum = '$ ( $winAssetX64Sha256 ) '
50+
51+ if (`$ env:PROCESSOR_ARCHITECTURE -eq 'ARM64') {
52+ `$ url = 'https://github.com/FaithBeam/stalker-gamma-cli/releases/download/$ ( $Version ) /$ ( $winAssetArm64.name ) '
53+ `$ checksum = '$ ( $winAssetArm64Sha256 ) '
54+ } else {
55+ `$ url = 'https://github.com/FaithBeam/stalker-gamma-cli/releases/download/$ ( $Version ) /$ ( $winAssetX64.name ) '
56+ `$ checksum = '$ ( $winAssetX64Sha256 ) '
57+ }
4958
5059`$ packageArgs = @{
5160 packageName = `$ packageName
You can’t perform that action at this time.
0 commit comments