Skip to content

Commit

Permalink
Add logic to fetch correct package on arm64 windows systems (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipbalinov authored Oct 25, 2024
1 parent eec8d72 commit 4876c93
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ function Install-Mondoo {
"
}

# we only support x86_64 at this point, stop if we got arm
If ($env:PROCESSOR_ARCHITECTURE -ne 'AMD64' -and -not ($env:PROCESSOR_ARCHITECTURE -eq "x86" -and [Environment]::Is64BitOperatingSystem)) {
# check if we are on 64-bit intel, 64-bit arm, or a 32-bit process on a 64-bit intel system:
If ($env:PROCESSOR_ARCHITECTURE -ne 'AMD64' -and $env:PROCESSOR_ARCHITECTURE -ne 'ARM64' -and -not (($env:PROCESSOR_ARCHITECTURE -eq "x86" -and [Environment]::Is64BitOperatingSystem))) {
fail "
Your processor architecture $env:PROCESSOR_ARCHITECTURE is not supported yet. Please come join us in
our Mondoo Community GitHub Discussions https://github.com/orgs/mondoohq/discussions or email us at [email protected]
Expand Down Expand Up @@ -261,6 +261,9 @@ function Install-Mondoo {
}

$arch = 'amd64'
if ($env:PROCESSOR_ARCHITECTURE -match "ARM") {
$arch = 'arm64'
}
$releaseurl = ''
$version = $Version

Expand Down

0 comments on commit 4876c93

Please sign in to comment.