From 083afdd6790cbb4712bdedc36bb60dde65c86bff Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 22 Sep 2025 08:53:14 +0200 Subject: [PATCH] feat: Implement ARM compatibility check for Windows 11 --- src/mido.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mido.sh b/src/mido.sh index 0f05161..c43c293 100644 --- a/src/mido.sh +++ b/src/mido.sh @@ -403,11 +403,9 @@ getCatalog() { local edition="" local file="catalog.cab" - if [[ "${id,,}" == "win11"* && "${PLATFORM,,}" != "x64" && "${ARCH,,}" == "arm64" ]]; then + if [[ "${id,,}" == "win11"* ]] && ! isCompatible; then # ARMv8.0 cannot run Windows 11 builds higher than 22631 - if ! grep -qw 'Features.*atomics' /proc/cpuinfo; then - echo "$(getBuild "$1" "$2" "22631.2861")" && return 0 - fi + echo "$(getBuild "$1" "$2" "22631.2861")" && return 0 fi case "${id,,}" in