mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-05-20 06:59:51 +08:00
修改源
This commit is contained in:
parent
85895b5ae2
commit
4d10470776
@ -18,12 +18,22 @@ import updatekiller
|
|||||||
import req as requests
|
import req as requests
|
||||||
homePath = os.path.expanduser('~')
|
homePath = os.path.expanduser('~')
|
||||||
try:
|
try:
|
||||||
sources = [
|
sourcesList = [
|
||||||
"http://fonts.wine-runner.gfdgdxi.top/list.json",
|
"http://fonts.wine-runner.gfdgdxi.top/list.json",
|
||||||
"https://code.gitlink.org.cn/gfdgd_xi/wine-runner-list/raw/branch/master/fonts/list.json"
|
"https://code.gitlink.org.cn/gfdgd_xi/wine-runner-list/raw/branch/master/fonts/list.json"
|
||||||
]
|
]
|
||||||
fontList = json.loads(requests.get(sources[0]).text)
|
change = False
|
||||||
|
for i in sourcesList:
|
||||||
|
try:
|
||||||
|
fontList = json.loads(requests.get(i).text)
|
||||||
|
change = True
|
||||||
|
break
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
if not change:
|
||||||
|
fontList = json.loads(requests.get(sourcesList[0]).text)
|
||||||
except:
|
except:
|
||||||
|
print("使用离线列表")
|
||||||
fontList = [
|
fontList = [
|
||||||
[
|
[
|
||||||
"fake_simsun.ttc",
|
"fake_simsun.ttc",
|
||||||
|
@ -31,6 +31,7 @@ try:
|
|||||||
if not change:
|
if not change:
|
||||||
netList = json.loads(requests.get(sourcesList[0]).text)
|
netList = json.loads(requests.get(sourcesList[0]).text)
|
||||||
except:
|
except:
|
||||||
|
print("使用离线列表")
|
||||||
netList = [
|
netList = [
|
||||||
["VC6 运行库", "http://vcpp.wine-runner.gfdgdxi.top/VC6RedistSetup_deu.exe", "VC6RedistSetup_deu.exe"],
|
["VC6 运行库", "http://vcpp.wine-runner.gfdgdxi.top/VC6RedistSetup_deu.exe", "VC6RedistSetup_deu.exe"],
|
||||||
["2005 Service Pack 1 Redistributable Package MFC 安全更新", "https://download.microsoft.com/download/4/A/2/4A22001F-FA3B-4C13-BF4E-42EC249D51C4/vcredist_x86.EXE", "vcredist05_x86.exe"],
|
["2005 Service Pack 1 Redistributable Package MFC 安全更新", "https://download.microsoft.com/download/4/A/2/4A22001F-FA3B-4C13-BF4E-42EC249D51C4/vcredist_x86.EXE", "vcredist05_x86.exe"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user