Răsfoiți Sursa

버그 수정

https://github.com/openNAMU/openNAMU/issues/2407
잉여개발기 (SPDV) 1 an în urmă
părinte
comite
78dc72d724
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      route/main_sys_update.py
  2. 1 1
      route/tool/func.py

+ 1 - 1
route/main_sys_update.py

@@ -19,7 +19,7 @@ def main_sys_update():
 
             print('Update')
             
-            if platform.system() == 'Linux':
+            if platform.system() == 'Linux' or platform.system() == 'Darwin':
                 ok = []
                 ok += [os.system('git remote rm origin')]
                 ok += [os.system('git remote add origin https://github.com/opennamu/opennamu.git')]

+ 1 - 1
route/tool/func.py

@@ -844,7 +844,7 @@ def linux_exe_chmod():
         else:
             exe_type = 'main.arm64.exe'
 
-    if platform.system() == 'Linux' and platform.system() == 'Darwin':
+    if platform.system() == 'Linux' or platform.system() == 'Darwin':
         os.system('chmod +x ./route_go/bin/' + exe_type)
 
     return exe_type