alroyso 1 year ago
parent
commit
41d6abfe3b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      lib/app/const/const.dart

+ 3 - 3
lib/app/const/const.dart

@@ -3,7 +3,7 @@ import 'package:naiyouwl/app/common/LogHelper.dart';
 import 'package:path/path.dart' as path;
 import 'package:process_run/shell_run.dart';
 enum OS { windows, linux, macos }
-enum Architecture { x86_64, arm64 }
+enum Architecture { amd64, arm64 }
 class ClashName {
   static late final OS os;
   static late final Architecture architecture;
@@ -38,7 +38,7 @@ class ClashName {
       final arch = Platform.environment['PROCESSOR_ARCHITECTURE'];
       // https://learn.microsoft.com/en-us/windows/win32/winprog64/wow64-implementation-details
       if (arch == 'AMD64') {
-        return Architecture.x86_64;
+        return Architecture.amd64;
       } else if (arch == 'ARM64') {
         return Architecture.arm64;
       } else {
@@ -50,7 +50,7 @@ class ClashName {
       if (result.exitCode == 0) {
         final arch = result.stdout.toString().trim();
         if (arch == 'x86_64') {
-          return Architecture.x86_64;
+          return Architecture.amd64;
         } else if (arch == 'aarch64' || arch == 'arm64') {
           return Architecture.arm64;
         } else {