From a1d93e1d76d03026b88c05e8e2db7fa3e15f5d21 Mon Sep 17 00:00:00 2001 From: JSR Date: Fri, 27 Mar 2026 21:04:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20macOS=20=E6=9E=B6?= =?UTF-8?q?=E6=9E=84=E6=98=BE=E7=A4=BA=E5=9B=9E=E9=80=80=E4=B8=BA=E5=AE=8C?= =?UTF-8?q?=E6=95=B4UA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 2b46147..55bb376 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -518,13 +518,18 @@ function getArchitecture(): string { if (userAgent.includes("arm64") || userAgent.includes("aarch64")) { return "ARM64" - } else if (userAgent.includes("x64") || userAgent.includes("amd64")) { + } else if ( + userAgent.includes("x64") || + userAgent.includes("amd64") || + userAgent.includes("x86_64") || + userAgent.includes("intel") + ) { return "x64" } else if (userAgent.includes("i386") || userAgent.includes("i686")) { return "x86" } - return userAgent + return "Unknown" } function getPlatform(): string {