-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add logic to fetch correct package on arm64 windows systems (#484)
- Loading branch information
1 parent
eec8d72
commit 4876c93
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -261,6 +261,9 @@ function Install-Mondoo { | |
} | ||
|
||
$arch = 'amd64' | ||
if ($env:PROCESSOR_ARCHITECTURE -match "ARM") { | ||
$arch = 'arm64' | ||
} | ||
$releaseurl = '' | ||
$version = $Version | ||
|
||
|