Просмотр исходного кода

fix(deploy): 腾讯coding跑路啦,切换镜像源到gitcode

huangrunheng 1 год назад
Родитель
Сommit
6da1bec7f1
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      deploy/config.py

+ 5 - 1
deploy/config.py

@@ -13,7 +13,7 @@ class ExecutionError(Exception):
 
 class ConfigModel:
     # Git
-    Repository: str = "https://e.coding.net/onmyojiautoscript/oas/OnmyojiAutoScript.git"
+    Repository: str = "https://gitcode.com/OnmyojiAutoScript/OnmyojiAutoScript.git"
     Branch: str = "master"
     GitExecutable: str = "./toolkit/Git/mingw64/bin/git.exe"
     GitProxy: Optional[str] = None
@@ -89,6 +89,10 @@ class DeployConfig(ConfigModel):
 
     def read(self):
         self.config = poor_yaml_read(DEPLOY_TEMPLATE)
+        # https://e.coding.net/onmyojiautoscript/oas/OnmyojiAutoScript.git
+        # 2025.09.01 腾讯coding跑路了
+        if self.config["Repository"].startswith("https://e.coding.net/"):
+            self.config["Repository"] = "https://gitcode.com/OnmyojiAutoScript/OnmyojiAutoScript.git"
         self.config_template = copy.deepcopy(self.config)
         self.config.update(poor_yaml_read(self.file))