Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logic to fetch correct package on arm64 windows systems #484

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading