From 7b20666c87d5e86dc214f3cf8e0fbc48498d06c6 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sat, 5 Nov 2022 08:50:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=8D=A2=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoConfig.py | 6 +++++- deepin-wine-packager.py | 2 +- wine/installwine | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/AutoConfig.py b/AutoConfig.py index 747fe43..d61f4d6 100755 --- a/AutoConfig.py +++ b/AutoConfig.py @@ -20,7 +20,11 @@ import PyQt5.QtWidgets as QtWidgets from UI.AutoConfig import * from Model import * -urlSources = "https://code.gitlink.org.cn/gfdgd_xi/wine-runner-list/raw/branch/master/auto" +urlSources = [ + "https://code.gitlink.org.cn/gfdgd_xi/wine-runner-list/raw/branch/master/auto", + "http://gfdgdxi.msns.cn/wine-runner-list/auto/", # 备用源,纯 IPv6 源 + "http://127.0.0.1/wine-runner-list/auto/" # 本地测试源 +][0] lists = [] class ProgramRunStatusUpload(): msgWindow = None diff --git a/deepin-wine-packager.py b/deepin-wine-packager.py index 287c833..f619b76 100755 --- a/deepin-wine-packager.py +++ b/deepin-wine-packager.py @@ -1295,7 +1295,7 @@ Description: {e3_text.text()} ################ if not self.build: self.label.emit("正在构建 deb 包……") - self.run_command("bash -c 'dpkg -b {} {}'".format(debPackagePath, e12_text.text())) + self.run_command("bash -c 'dpkg -b \"{}\" \"{}\"'".format(debPackagePath, e12_text.text())) ################ # 完成构建 ################ diff --git a/wine/installwine b/wine/installwine index 317ecb9..18c7420 100755 --- a/wine/installwine +++ b/wine/installwine @@ -308,7 +308,11 @@ def get_now_lang()->"获取当前语言": if __name__ == "__main__": localJsonList = [] internetJsonList = [] - internetWineSource = "https://code.gitlink.org.cn/gfdgd_xi/wine-mirrors/raw/branch/master/" + internetWineSource = [ + "https://code.gitlink.org.cn/gfdgd_xi/wine-mirrors/raw/branch/master/", + "http://gfdgdxi.msns.cn/wine-mirrors/", # 备用源,纯 IPv6 源 + "http://127.0.0.1/wine-mirrors/" # 本地测试源 + ][1] app = QtWidgets.QApplication(sys.argv) # 读取翻译 if not get_now_lang() == "zh_CN.UTF-8":