全部切换至github

This commit is contained in:
gfdgd_xi 2023-11-04 17:08:28 +08:00
parent 6aa05d2049
commit b11e0b5e54
2 changed files with 216 additions and 198 deletions

18
change-to-github.py Normal file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env python3
import os
import json
with open(f"information.json", "r") as file:
things = json.loads(file.read())
newThings = []
for i in things:
if not "http://seafile.jyx2048.com:2345/spark-deepin-wine-runner/data/" in i[1]:
newThings.append(i)
continue
lists = i
pathName = os.path.basename(lists[1])
pathNameWithoutEnd = os.path.splitext(pathName)[0]
lists[1] = f"https://github.com/rain-gfd/wine-download/releases/download/{pathNameWithoutEnd}/{pathName}"
newThings.append(lists)
#newThings.append()
with open("information.json", "w") as file:
file.write(json.dumps(newThings, ensure_ascii=False, indent=4))

File diff suppressed because it is too large Load Diff