From ff6a441bcf2c9832161e28845387b701acae7e75 Mon Sep 17 00:00:00 2001 From: Corbin Davenport Date: Fri, 28 Jun 2024 20:30:43 -0400 Subject: [PATCH] Update CPU detection --- lib/sys.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sys.dart b/lib/sys.dart index 92977ef..6b11281 100644 --- a/lib/sys.dart +++ b/lib/sys.dart @@ -33,7 +33,7 @@ Future getCPUArchitecture() async { // Check if being emulated in ARM and return true architecture try { var buildArch = await io.Process.run('reg', ['query', r'HKEY_LOCAL_MACHINE\SYSTEM\Software\Microsoft\BuildLayers\DesktopEditions', '/v', 'BuildArch']); - if (buildArch.stdout.toString().contains('arm64')) { + if (buildArch.stdout.toString().toLowerCase().contains('arm64')) { cpu = 'ARM64'; } } catch (e) {