From c9f964b1bd137b962c659d6f3c65f66d68983dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Mon, 16 Sep 2024 14:38:56 +0800 Subject: [PATCH] Update build.py --- build.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/build.py b/build.py index b7a2903f..ef645cfa 100644 --- a/build.py +++ b/build.py @@ -18,9 +18,7 @@ if sys.argv[1] == "loadversion": mylinks = { "LunaHook": "https://github.com/HIllya51/LunaHook/releases/latest/download/Release_English.zip", "ocr_models": { - "ocr_models": { - "ja.zip": "https://github.com/test123456654321/RESOURCES/releases/download/ocr_models/ja.zip", - } + "ja.zip": "https://github.com/test123456654321/RESOURCES/releases/download/ocr_models/ja.zip", }, "mecab.zip": "https://github.com/HIllya51/RESOURCES/releases/download/common/mecab.zip", "ocr.zip": "https://github.com/HIllya51/RESOURCES/releases/download/common/ocr.zip", @@ -46,8 +44,6 @@ curlFile64 = "https://curl.se/windows/dl-8.8.0_3/curl-8.8.0_3-win64-mingw.zip" availableLocales = ["cht", "en", "ja", "ko", "ru", "zh"] - - def createPluginDirs(): os.chdir(rootDir + "\\LunaTranslator\\files") if not os.path.exists("plugins"): @@ -167,12 +163,12 @@ def downloadCurl(): subprocess.run(f"curl -LO {curlFile64}") subprocess.run(f"7z x {curlFile32.split('/')[-1]}") subprocess.run(f"7z x {curlFile64.split('/')[-1]}") - outputDirName32 = curlFile32.split('/')[-1].replace(".zip", "") + outputDirName32 = curlFile32.split("/")[-1].replace(".zip", "") shutil.move( f"{outputDirName32}/bin/libcurl.dll", f"{rootDir}/LunaTranslator/files/plugins/DLL32", ) - outputDirName64 = curlFile64.split('/')[-1].replace(".zip", "") + outputDirName64 = curlFile64.split("/")[-1].replace(".zip", "") shutil.move( f"{outputDirName64}/bin/libcurl-x64.dll", f"{rootDir}/LunaTranslator/files/plugins/DLL64",