feat(配置): 增加playwright_dir配置项并优化浏览器路径查找逻辑

添加playwright_dir配置项以支持自定义浏览器路径
优化打包环境和开发环境下的浏览器路径查找逻辑,优先使用配置中的路径
删除不再使用的build.bat打包脚本
This commit is contained in:
2026-01-21 11:54:21 +08:00
parent 4b406a3727
commit 10ce2ba17b
5 changed files with 42 additions and 67 deletions

View File

@@ -5,7 +5,8 @@ import sys
from PyInstaller.utils.hooks import collect_data_files, collect_submodules
# 添加当前目录到路径
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
current_dir = os.getcwd()
sys.path.append(current_dir)
block_cipher = None