alroyso 6 months ago
parent
commit
070683e9c8
2 changed files with 3 additions and 3 deletions
  1. 1 1
      download.py
  2. 2 2
      lib/app/controller/tray.dart

+ 1 - 1
download.py

@@ -222,7 +222,7 @@ def main():
                     [f for f in os.listdir(temp_dir) if service in f],
                     key=lambda x: os.path.getmtime(os.path.join(temp_dir, x))
                 )
-                new_name = f"core-{SYSTEM}-{platform.machine()}" if service == 'mihomo' else f"service-{SYSTEM}-{platform.machine()}"
+                new_name = f"core-{SYSTEM}-{platform.machine().lower()}" if service == 'mihomo' else f"service-{SYSTEM}-{platform.machine().lower()}"
                 if SYSTEM == 'windows':
                     new_name += '.exe'
                 rename_file(os.path.join(temp_dir, latest_file), new_name)

+ 2 - 2
lib/app/controller/tray.dart

@@ -37,7 +37,7 @@ class TrayController extends GetxController with TrayListener {
     var disabledSerivce = controllers.global.connectStatus.value;
     if(Platform.isWindows){
       //disabledTun.value = true;
-      disabledSerivce = false;
+
     }
 
     var serivceName = controllers.cc_service.installStatus.value == true? 'setting_service_uninstall'.tr : 'setting_service_install'.tr,
@@ -88,7 +88,7 @@ class TrayController extends GetxController with TrayListener {
       MenuItem.checkbox(
         label: 'route_tun_title'.tr,
         checked: disabledTun.value,
-        disabled: disabledSerivce,
+        disabled: Platform.isWindows ? false : disabledSerivce,
         onClick: handleClickSetAsTunProxy,
       ),
       MenuItem.checkbox(