Skip to content

Commit

Permalink
Fix #12
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzdyl committed Feb 5, 2024
1 parent d95f098 commit 30a2de3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions install_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,12 @@ def main():
# 解压文件
shutil.unpack_archive(store_zip_path, os.path.join(temp_dir, "LiteLoaderQQNT-Plugin-Plugin-Store"))

# 获取环境变量,如果不存在则设置默认值
plugin_path = os.getenv('LITELOADERQQNT_PROFILE', default=os.path.join(file_path, 'resources', 'app', 'LiteLoaderQQNT-main', 'plugins'))
# 获取LITELOADERQQNT_PROFILE环境变量的值
lite_loader_profile = os.getenv('LITELOADERQQNT_PROFILE')

# 如果环境变量不存在,则使用默认路径
default_path = os.path.join(file_path, 'resources', 'app', 'LiteLoaderQQNT-main', 'plugins')
plugin_path = os.path.join(lite_loader_profile, 'plugins') if lite_loader_profile else default_path

existing_destination_path1 = os.path.join(plugin_path, 'LiteLoaderQQNT-Plugin-Plugin-Store-master')
existing_destination_path2 = os.path.join(plugin_path, 'pluginStore')
Expand Down

0 comments on commit 30a2de3

Please sign in to comment.