Browse Source

fix: 修改 macOS 下内嵌 Chrome 的权限

修改 macOS 下内嵌 Chrome 的权限为 755(可读写)而非 555(不可写),解决了下次打包时无法删除上次打包生成的应用的问题。
Li Yanxiao 3 months ago
parent
commit
c56f47b2c9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ElectronJS/update_chrome.py

+ 2 - 2
ElectronJS/update_chrome.py

@@ -264,7 +264,7 @@ if __name__ == "__main__":
         finally:
             shutil.rmtree("./chromedrivers")
         os.chmod("./chromedriver_mac64", 0o755)
-        os.chmod("./chrome_mac64.app", 0o555)
-        os.chmod("./chrome_mac64.app/Contents/MacOS/Google Chrome", 0o555)
+        os.chmod("./chrome_mac64.app", 0o755)
+        os.chmod("./chrome_mac64.app/Contents/MacOS/Google Chrome", 0o755)
 
     print("Done and don't forget to generate executestage EXEcutable program!")