Skip to content

Commit

Permalink
Fix #83 #86 (#87)
Browse files Browse the repository at this point in the history
* Fix #83

* Fix #86
  • Loading branch information
Mzdyl authored Jul 23, 2024
1 parent 7d3cf31 commit 7765e6c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions install_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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("检测到已安装插件商店,不再重新安装")
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 7765e6c

Please sign in to comment.