mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 01:58:27 +08:00
修改字体安装器的默认源
This commit is contained in:
parent
787de003e3
commit
e0a977b7ea
@ -19,18 +19,48 @@ import req as requests
|
|||||||
homePath = os.path.expanduser('~')
|
homePath = os.path.expanduser('~')
|
||||||
try:
|
try:
|
||||||
sources = [
|
sources = [
|
||||||
"https://code.gitlink.org.cn/gfdgd_xi/wine-runner-list/raw/branch/master/fonts/list.json",
|
"http://fonts.wine-runner.gfdgdxi.top/list.json",
|
||||||
"http://gfdgdxi.msns.cn/wine-runner-list/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)
|
fontList = json.loads(requests.get(sources[0]).text)
|
||||||
except:
|
except:
|
||||||
fontList = [
|
fontList = [
|
||||||
["fake_simsun.ttc", "https://gitlink.org.cn/api/attachments/392168", "simsun.ttc", "fake_simsun.ttc(会替换容器内的宋体,且与 deepin 有问题)"],
|
[
|
||||||
["simsun.ttc", "https://gitlink.org.cn/api/attachments/392181", "simsun.ttc", "simsun.ttc"],
|
"fake_simsun.ttc",
|
||||||
["simsunb.ttf", "https://gitlink.org.cn/api/attachments/392180", "simsunb.ttf", "simsunb.ttf"],
|
"http://fonts.wine-runner.gfdgdxi.top/fake_simsun.ttc",
|
||||||
["msyh.ttc", "https://gitlink.org.cn/api/attachments/392182", "msyh.ttc", "msyh.ttc"],
|
"simsun.ttc",
|
||||||
["msyhl.ttc", "https://gitlink.org.cn/api/attachments/392184", "msyhl.ttc", "msyhl.ttc"],
|
"fake_simsun.ttc(会替换容器内的宋体)"
|
||||||
["msyhbd.ttc", "https://gitlink.org.cn/api/attachments/392183", "msyhbd.ttc", "msyhbd.ttc"]
|
],
|
||||||
|
[
|
||||||
|
"simsun.ttc",
|
||||||
|
"http://fonts.wine-runner.gfdgdxi.top/simsun.ttc",
|
||||||
|
"simsun.ttc",
|
||||||
|
"simsun.ttc"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"simsunb.ttf",
|
||||||
|
"http://fonts.wine-runner.gfdgdxi.top/simsunb.ttf",
|
||||||
|
"simsunb.ttf",
|
||||||
|
"simsunb.ttf"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"msyh.ttc",
|
||||||
|
"http://fonts.wine-runner.gfdgdxi.top/msyh.ttc",
|
||||||
|
"msyh.ttc",
|
||||||
|
"msyh.ttc"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"msyhl.ttc",
|
||||||
|
"http://fonts.wine-runner.gfdgdxi.top/msyhl.ttc",
|
||||||
|
"msyhl.ttc",
|
||||||
|
"msyhl.ttc"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"msyhbd.ttc",
|
||||||
|
"http://fonts.wine-runner.gfdgdxi.top/msyhbd.ttc",
|
||||||
|
"msyhbd.ttc",
|
||||||
|
"msyhbd.ttc"
|
||||||
|
]
|
||||||
]
|
]
|
||||||
def Download(wineBotton: str, id: int) -> int:
|
def Download(wineBotton: str, id: int) -> int:
|
||||||
return os.system(f"aria2c -x 16 -s 16 -d '{wineBotton}/drive_c/windows/Fonts/' -o '{fontList[id][0]}' \"{fontList[id][1]}\"")
|
return os.system(f"aria2c -x 16 -s 16 -d '{wineBotton}/drive_c/windows/Fonts/' -o '{fontList[id][0]}' \"{fontList[id][1]}\"")
|
||||||
|
Loading…
Reference in New Issue
Block a user