Skip to content

Commit

Permalink
Update CPU detection
Browse files Browse the repository at this point in the history
  • Loading branch information
corbindavenport committed Jun 29, 2024
1 parent d78ebf2 commit ff6a441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sys.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Future<String> 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) {
Expand Down

0 comments on commit ff6a441

Please sign in to comment.