From 6519ad25ca0db3662a4c4e84bf79e39e9347178a Mon Sep 17 00:00:00 2001 From: Aqr-K <95741669+Aqr-K@users.noreply.github.com> Date: Mon, 14 Jul 2025 22:17:04 +0800 Subject: [PATCH] fix is_aarch --- app/utils/system.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/utils/system.py b/app/utils/system.py index 38424609..5309e023 100644 --- a/app/utils/system.py +++ b/app/utils/system.py @@ -104,8 +104,7 @@ class SystemUtils: 判断是否为ARM32架构 """ arch_name = platform.machine().lower() - is_arm_prefix = True if arch_name.startswith('arm') or arch_name.startswith('aarch') else False - return True if (is_arm_prefix and arch_name not in ('aarch64', 'arm64')) else False + return True if (arch_name.startswith(('arm', 'aarch')) and arch_name not in ('aarch64', 'arm64')) else False @staticmethod def is_x86_64() -> bool: