This commit is contained in:
恍兮惚兮 2024-07-07 18:14:04 +08:00
parent e5d4a6447c
commit 2ef66a0bbc
3 changed files with 20 additions and 20 deletions

View File

@ -209,8 +209,8 @@ def on_not_find_qweb(self):
def _okcallback():
link = [
"https://github.com/test123456654321/LunaTranslator/releases/download/other/QWebEngine_x86.zip",
"https://github.com/test123456654321/LunaTranslator/releases/download/other/QWebEngine_x64.zip",
"https://github.com/test123456654321/RESOURCES/releases/download/other/QWebEngine_x86.zip",
"https://github.com/test123456654321/RESOURCES/releases/download/other/QWebEngine_x64.zip",
][platform.architecture()[0] == "64bit"]
os.startfile(link)
installqwebdialog(self, link)

View File

@ -697,27 +697,27 @@
"links": [
{
"name": "日语",
"link": "https://github.com/test123456654321/LunaTranslator/releases/download/ocr_models/ja.zip"
"link": "https://github.com/test123456654321/RESOURCES/releases/download/ocr_models/ja.zip"
},
{
"name": "英文",
"link": "https://github.com/test123456654321/LunaTranslator/releases/download/ocr_models/en.zip"
"link": "https://github.com/test123456654321/RESOURCES/releases/download/ocr_models/en.zip"
},
{
"name": "简体中文",
"link": "https://github.com/test123456654321/LunaTranslator/releases/download/ocr_models/zh.zip"
"link": "https://github.com/test123456654321/RESOURCES/releases/download/ocr_models/zh.zip"
},
{
"name": "繁体中文",
"link": "https://github.com/test123456654321/LunaTranslator/releases/download/ocr_models/cht.zip"
"link": "https://github.com/test123456654321/RESOURCES/releases/download/ocr_models/cht.zip"
},
{
"name": "韩语",
"link": "https://github.com/test123456654321/LunaTranslator/releases/download/ocr_models/ko.zip"
"link": "https://github.com/test123456654321/RESOURCES/releases/download/ocr_models/ko.zip"
},
{
"name": "俄语",
"link": "https://github.com/test123456654321/LunaTranslator/releases/download/ocr_models/ru.zip"
"link": "https://github.com/test123456654321/RESOURCES/releases/download/ocr_models/ru.zip"
}
]
},
@ -750,7 +750,7 @@
"links": [
{
"name": "MeCab",
"link": "https://github.com/test123456654321/LunaTranslator/releases/download/dictionary/Mecab.zip"
"link": "https://github.com/test123456654321/RESOURCES/releases/download/dictionary/Mecab.zip"
},
{
"name": "Unidic",
@ -760,19 +760,19 @@
},
{
"name": "小学馆",
"link": "https://github.com/test123456654321/LunaTranslator/releases/download/dictionary/xiaoxueguan.db"
"link": "https://github.com/test123456654321/RESOURCES/releases/download/dictionary/xiaoxueguan.db"
},
{
"name": "EDICT",
"link": "https://github.com/test123456654321/LunaTranslator/releases/download/dictionary/edict.db"
"link": "https://github.com/test123456654321/RESOURCES/releases/download/dictionary/edict.db"
},
{
"name": "EDICT2",
"link": "https://github.com/test123456654321/LunaTranslator/releases/download/dictionary/edict2"
"link": "https://github.com/test123456654321/RESOURCES/releases/download/dictionary/edict2"
},
{
"name": "灵格斯词典",
"link": "https://github.com/test123456654321/LunaTranslator/releases/download/dictionary/Lingoes.zip"
"link": "https://github.com/test123456654321/RESOURCES/releases/download/dictionary/Lingoes.zip"
},
{
"name": "MDict",
@ -847,7 +847,7 @@
},
{
"name": "win7适配版",
"link": "https://github.com/test123456654321/LunaTranslator/releases/download/other/Release.zip"
"link": "https://github.com/test123456654321/RESOURCES/releases/download/other/Release.zip"
}
]
},
@ -857,11 +857,11 @@
"links": [
{
"name": "x86",
"link": "https://github.com/test123456654321/LunaTranslator/releases/download/other/QWebEngine_x86.zip"
"link": "https://github.com/test123456654321/RESOURCES/releases/download/other/QWebEngine_x86.zip"
},
{
"name": "x64",
"link": "https://github.com/test123456654321/LunaTranslator/releases/download/other/QWebEngine_x64.zip"
"link": "https://github.com/test123456654321/RESOURCES/releases/download/other/QWebEngine_x64.zip"
}
]
}

View File

@ -23,7 +23,7 @@ curlFileName64 = "curl-8.7.1_7-win64-mingw.zip"
ocrModelUrl = (
"https://github.com/test123456654321/LunaTranslator/releases/download/ocr_models"
"https://github.com/test123456654321/RESOURCES/releases/download/ocr_models"
)
availableLocales = ["cht", "en", "ja", "ko", "ru", "zh"]
@ -113,15 +113,15 @@ def downloadcommon():
os.chdir(rootDir + "\\temp")
downloadlr()
subprocess.run(
f"curl -LO https://github.com/test123456654321/LunaTranslator/releases/download/other/mecab.zip"
f"curl -LO https://github.com/test123456654321/RESOURCES/releases/download/other/mecab.zip"
)
subprocess.run(f"7z x mecab.zip -oALL")
subprocess.run(
f"curl -LO https://github.com/test123456654321/LunaTranslator/releases/download/other/ocr.zip"
f"curl -LO https://github.com/test123456654321/RESOURCES/releases/download/other/ocr.zip"
)
subprocess.run(f"7z x ocr.zip -oALL")
subprocess.run(
f"curl -LO https://github.com/test123456654321/LunaTranslator/releases/download/other/magpie.zip"
f"curl -LO https://github.com/test123456654321/RESOURCES/releases/download/other/magpie.zip"
)
subprocess.run(f"7z x magpie.zip -oALL")