@@ -434,27 +434,26 @@ jobs:
434
434
435
435
$release_assets = gh release view --repo coder/coder "v${version}" --json assets | `
436
436
ConvertFrom-Json
437
- # Get the installer URL from the release assets.
438
- $installer_url = $release_assets.assets | `
437
+ # Get the installer URLs from the release assets.
438
+ $amd64_installer_url = $release_assets.assets | `
439
439
Where-Object name -Match ".*_windows_amd64_installer.exe$" | `
440
440
Select -ExpandProperty url
441
+ $amd64_zip_url = $release_assets.assets | `
442
+ Where-Object name -Match ".*_windows_amd64.zip$" | `
443
+ Select -ExpandProperty url
444
+ $arm64_zip_url = $release_assets.assets | `
445
+ Where-Object name -Match ".*_windows_arm64.zip$" | `
446
+ Select -ExpandProperty url
441
447
442
- echo "Installer URL: ${installer_url}"
448
+ echo "amd64 Installer URL: ${amd64_installer_url}"
449
+ echo "amd64 zip URL: ${amd64_zip_url}"
450
+ echo "arm64 zip URL: ${arm64_zip_url}"
443
451
echo "Package version: ${version}"
444
452
445
- # The URL "|X64" suffix forces the architecture as it cannot be
446
- # sniffed properly from the URL. wingetcreate checks both the URL and
447
- # binary magic bytes for the architecture and they need to both match,
448
- # but they only check for `x64`, `win64` and `_64` in the URL. Our URL
449
- # contains `amd64` which doesn't match sadly.
450
- #
451
- # wingetcreate will still do the binary magic bytes check, so if we
452
- # accidentally change the architecture of the installer, it will fail
453
- # submission.
454
453
.\wingetcreate.exe update Coder.Coder `
455
454
--submit `
456
455
--version "${version}" `
457
- --urls "${installer_url}|X64 " `
456
+ --urls "${amd64_installer_url}" "${amd64_zip_url}" "${arm64_zip_url} " `
458
457
--token "$env:WINGET_GH_TOKEN"
459
458
460
459
env :
0 commit comments