From 7765e6c7616e67c4bddd1bcf32e48269e146cb2e Mon Sep 17 00:00:00 2001 From: Mzdyl <25149539+Mzdyl@users.noreply.github.com> Date: Tue, 23 Jul 2024 22:15:17 +0800 Subject: [PATCH] Fix #83 #86 (#87) * Fix #83 * Fix #86 --- install_windows.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install_windows.py b/install_windows.py index 0ef201d..f4c1c2c 100644 --- a/install_windows.py +++ b/install_windows.py @@ -312,6 +312,7 @@ def setup_environment_and_move_files(qq_exe_path): root = tk.Tk() root.withdraw() custom_path = filedialog.askdirectory(title="请选择你要设定的 LiteLoaderQQNT 数据文件") + custom_path = os.path.normpath(custom_path) # 路径转换 command = ('setx LITELOADERQQNT_PROFILE "' + custom_path + '"') else: default_path = get_document_path() + '\\LiteloaderQQNT' @@ -481,8 +482,8 @@ def install_plugin_store(file_path): if not os.path.exists(existing_destination_path): # 创建目标文件夹 os.makedirs(plugin_path, exist_ok=True) - print(f"Moving from: {os.path.join(temp_dir, 'list-viewer')}") - print(f"Moving to: {existing_destination_path}") + print(f"移动自: {os.path.join(temp_dir, 'list-viewer')}") + print(f"移动到: {existing_destination_path}") shutil.move(os.path.join(temp_dir, "list-viewer"), plugin_path) else: print("检测到已安装插件商店,不再重新安装") @@ -588,7 +589,7 @@ def download_and_extract_form_release(repos: str): version = versions[repos] download_url = f"https://github.com/{repos}/releases/download/{version}/{filename}" - zip_name = "LiteLoaderQQNT-Store.zip" if repos == "ltxhhz/LL-plugin-list-viewer" else "LiteLoader.zip" + zip_name = "list-viewer.zip" if repos == "ltxhhz/LL-plugin-list-viewer" else "LiteLoader.zip" zip_path = os.path.join(temp_dir, zip_name) download_file(download_url, zip_path)