chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.4k stars 904 forks source link

ARM64 now has x64 emulation #2172

Open TheCakeIsNaOH opened 3 years ago

TheCakeIsNaOH commented 3 years ago

Microsoft has released x64 emulation for ARM64 in preview builds. https://blogs.windows.com/windows-insider/2020/12/10/introducing-x64-emulation-in-preview-for-windows-10-on-arm-pcs-to-the-windows-insider-program/

Thus, it is no longer always correct for Get-OSArchitectureWidth to always return 32 bit on an ARM64 system. https://github.com/chocolatey/choco/blob/f924d47fb4177a9a34ff0c2bf995938b5c12800b/src/chocolatey.resources/helpers/functions/Get-OSArchitectureWidth.ps1#L34-L37

Previous issue: #1800

riverar commented 1 year ago

I had questions about how to deploy natively on arm64 and was pointed to the repository. Found this issue. Am a little surprised at the issue age.

ping @snickler

TheCakeIsNaOH commented 1 year ago

@riverar Currently, the Chocolatey CLI PowerShell helpers do not have any built in support for native ARM/ARM64 software. This issue is about adding support for amd64 running emulated on arm64, now that emulation has been added. You want issue #1803 instead.

riverar commented 1 year ago

Both really. If I don't choose to package arm64 binaries, I think Chocolatey should at least use the x64 executables not the x86 ones.