修改源
This commit is contained in:
parent
0e4afd90d9
commit
2a9df20b5c
|
@ -35,9 +35,9 @@ print("""译文:一轮缓缓移动的秋月洒下万里金波,就像那刚
|
||||||
我要乘风飞上万里长空,俯视祖国的大好山河。还要砍去月中摇曳的桂树枝柯,人们说,这将使月亮洒下人间的光辉更多。""")
|
我要乘风飞上万里长空,俯视祖国的大好山河。还要砍去月中摇曳的桂树枝柯,人们说,这将使月亮洒下人间的光辉更多。""")
|
||||||
print("================================")
|
print("================================")
|
||||||
urlSourcesList = [
|
urlSourcesList = [
|
||||||
"https://code.gitlink.org.cn/gfdgd_xi/uengine-runner-list/raw/branch/master/auto", # Gitlink 源
|
"http://config.uengine-runner.gfdgdxi.top/", # Github 源
|
||||||
"https://gitee.com/gfdgd-xi/uengine-wine-runner-auto-configuration-script/raw/master/", # Gitee 源
|
"https://gitee.com/gfdgd-xi/uengine-wine-runner-auto-configuration-script/raw/master/", # Gitee 源
|
||||||
"https://gfdgd-xi.github.io/uengine-wine-runner-auto-configuration-script/", # Github 源
|
"https://code.gitlink.org.cn/gfdgd_xi/uengine-runner-list/raw/branch/master/auto", # Gitlink 源
|
||||||
"http://gfdgdxi.msns.cn/uengine-runner-list/auto/", # 备用源1,纯 IPv6 源
|
"http://gfdgdxi.msns.cn/uengine-runner-list/auto/", # 备用源1,纯 IPv6 源
|
||||||
"http://gfdgdxi.free.idcfengye.com/uengine-runner-auto-configuration-script/", # 备用源2
|
"http://gfdgdxi.free.idcfengye.com/uengine-runner-auto-configuration-script/", # 备用源2
|
||||||
"http://gfdgdxi.free.idcfengye.com/uengine-runner-list/auto/", # 备用源 3
|
"http://gfdgdxi.free.idcfengye.com/uengine-runner-list/auto/", # 备用源 3
|
||||||
|
@ -525,7 +525,7 @@ def readtxt(path):
|
||||||
def ChangeSources():
|
def ChangeSources():
|
||||||
global urlSources
|
global urlSources
|
||||||
global urlSourcesIndex
|
global urlSourcesIndex
|
||||||
sources = [ui.actionGitlink, ui.actionGitee, ui.actionGithub, ui.action_IPv6, ui.action_2, ui.action_3, ui.action]
|
sources = [ui.actionGithub, ui.actionGitee, ui.actionGitlink, ui.action_IPv6, ui.action_2, ui.action_3, ui.action]
|
||||||
for i in range(0, len(sources)):
|
for i in range(0, len(sources)):
|
||||||
if sources[i].isChecked():
|
if sources[i].isChecked():
|
||||||
old_urlSources = urlSources #先备份
|
old_urlSources = urlSources #先备份
|
||||||
|
|
|
@ -23,7 +23,7 @@ class ProgramRunStatusShow():
|
||||||
try:
|
try:
|
||||||
fenlists = []
|
fenlists = []
|
||||||
for i in range(6):
|
for i in range(6):
|
||||||
fenlists.append(int(requests.get(base64.b64decode("aHR0cHM6Ly9jb2RlLmdpdGxpbmsub3JnLmNuL2dmZGdkLXhpLW9yZy93aW5lLXJ1bm5lci1kb3dubG9hZHMtb2YtcnVubmVyL3Jhdy9icmFuY2gvbWFzdGVyL0Zlbi1VRW5naW5lL0Zlbg==").decode("utf-8") + f"{i}.txt").text))
|
fenlists.append(int(requests.get("http://data.download.gfdgdxi.top/Fen-UEngine/Fen" + f"{i}.txt").text))
|
||||||
tipsInfo = ""
|
tipsInfo = ""
|
||||||
except:
|
except:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|
|
@ -64,13 +64,13 @@ class Ui_MainWindow(object):
|
||||||
self.openFile.setObjectName("openFile")
|
self.openFile.setObjectName("openFile")
|
||||||
self.actionGitlink = QtWidgets.QAction(MainWindow)
|
self.actionGitlink = QtWidgets.QAction(MainWindow)
|
||||||
self.actionGitlink.setCheckable(True)
|
self.actionGitlink.setCheckable(True)
|
||||||
self.actionGitlink.setChecked(True)
|
|
||||||
self.actionGitlink.setObjectName("actionGitlink")
|
self.actionGitlink.setObjectName("actionGitlink")
|
||||||
self.actionGitee = QtWidgets.QAction(MainWindow)
|
self.actionGitee = QtWidgets.QAction(MainWindow)
|
||||||
self.actionGitee.setCheckable(True)
|
self.actionGitee.setCheckable(True)
|
||||||
self.actionGitee.setObjectName("actionGitee")
|
self.actionGitee.setObjectName("actionGitee")
|
||||||
self.actionGithub = QtWidgets.QAction(MainWindow)
|
self.actionGithub = QtWidgets.QAction(MainWindow)
|
||||||
self.actionGithub.setCheckable(True)
|
self.actionGithub.setCheckable(True)
|
||||||
|
self.actionGithub.setChecked(True)
|
||||||
self.actionGithub.setObjectName("actionGithub")
|
self.actionGithub.setObjectName("actionGithub")
|
||||||
self.action_IPv6 = QtWidgets.QAction(MainWindow)
|
self.action_IPv6 = QtWidgets.QAction(MainWindow)
|
||||||
self.action_IPv6.setCheckable(True)
|
self.action_IPv6.setCheckable(True)
|
||||||
|
@ -88,9 +88,9 @@ class Ui_MainWindow(object):
|
||||||
self.menu.addAction(self.openFile)
|
self.menu.addAction(self.openFile)
|
||||||
self.menu.addSeparator()
|
self.menu.addSeparator()
|
||||||
self.menu.addAction(self.exitProgram)
|
self.menu.addAction(self.exitProgram)
|
||||||
self.menu_2.addAction(self.actionGitlink)
|
|
||||||
self.menu_2.addAction(self.actionGitee)
|
|
||||||
self.menu_2.addAction(self.actionGithub)
|
self.menu_2.addAction(self.actionGithub)
|
||||||
|
self.menu_2.addAction(self.actionGitee)
|
||||||
|
self.menu_2.addAction(self.actionGitlink)
|
||||||
self.menu_2.addAction(self.action_IPv6)
|
self.menu_2.addAction(self.action_IPv6)
|
||||||
self.menu_2.addAction(self.action_2)
|
self.menu_2.addAction(self.action_2)
|
||||||
self.menu_2.addAction(self.action_3)
|
self.menu_2.addAction(self.action_3)
|
||||||
|
|
|
@ -1524,7 +1524,8 @@ class AddNewUengineDesktopLink():
|
||||||
|
|
||||||
def GetNewInformation():
|
def GetNewInformation():
|
||||||
try:
|
try:
|
||||||
text = requests.get("http://uengine-runner.gfdgdxi.top/information/index.html").text
|
text = requests.get("http://www.gfdgdxi.top/uengine-runner/Help/information/index.html").text
|
||||||
|
print(text)
|
||||||
except:
|
except:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
text = """<p>无法连接到服务器</p>
|
text = """<p>无法连接到服务器</p>
|
||||||
|
|
|
@ -58,7 +58,7 @@ else
|
||||||
# 改为 Github
|
# 改为 Github
|
||||||
#aria2c -x 16 -s 16 -d /tmp/uengine -o uenginetar.xz https://github.com/rain-gfd/uengine-installer-package/releases/download/uengine2.1.2.2010/uengine2.1.2.2010.tar.xz
|
#aria2c -x 16 -s 16 -d /tmp/uengine -o uenginetar.xz https://github.com/rain-gfd/uengine-installer-package/releases/download/uengine2.1.2.2010/uengine2.1.2.2010.tar.xz
|
||||||
# 改为 JihuLab
|
# 改为 JihuLab
|
||||||
#aria2c -x 16 -s 16 -d /tmp/uengine -o uenginetar.xz https://jihulab.com/gfdgd-xi/uengine-download/-/raw/main/uengine2.1.2.2010.tar.xz
|
aria2c -x 16 -s 16 -d /tmp/uengine -o uenginetar.xz https://jihulab.com/gfdgd-xi/uengine-download/-/raw/main/uengine2.1.2.2010.tar.xz
|
||||||
fi
|
fi
|
||||||
tar_path="/tmp/uengine/uenginetar.xz"
|
tar_path="/tmp/uengine/uenginetar.xz"
|
||||||
tar_path=`echo "$tar_path" | sed $'s/\'//g'`
|
tar_path=`echo "$tar_path" | sed $'s/\'//g'`
|
||||||
|
|
Loading…
Reference in New Issue