Files
gz/工作总结_0721.md
T
2026-07-21 17:54:54 +08:00

56 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 每日工作总结
## 基本信息
- **日期**: 2026年7月21日
- **项目**: 路由器管理工具
---
## 今日完成工作
### 1. 多浏览器支持
- 新增 Chrome 和 Firefox 浏览器选项(原有仅支持 Edge)
- 实现浏览器可视化选择(Radiobutton 单选按钮组)
- 集成 `ChromeDriverManager` 和 `GeckoDriverManager`
- 不同浏览器使用对应驱动管理器自动下载和缓存
### 2. Firefox 启动修复
- 修复 geckodriver 下载成功但 Firefox 浏览器未找到的问题
- 使用 `FirefoxService` 显式指定驱动路径
- 添加 Firefox 安装路径自动检测(Program Files 等常见位置)
- 备选方案中增加 geckodriver 缓存目录扫描
### 3. Git 仓库搭建
- 初始化本地 Git 仓库
- 创建 `.gitignore` 排除构建产物(dist/、build/、pyinstaller/)
- 关联 Gitea 远程仓库并推送所有项目文件
### 4. 项目依赖管理
- 创建 `requirements.txt`(selenium、webdriver-manager、requests、urllib3、pyinstaller)
- 确保新环境 `pip install -r requirements.txt` 即可运行和编译
### 5. 项目文档
- 编写 `README.md`:包含功能介绍、安装步骤、使用说明、界面示意图、注意事项
- 完整的新人上手文档
### 6. 多次 EXE 打包与问题修复
- 更新 spec 文件 hidden imports 支持 Chrome/Firefox 驱动
- 修复打包时文件占用导致的 PermissionError
- 修复 Firefox 二进制路径检测逻辑
---
## 技术要点
- `FirefoxService(executable_path=driver_path)` 显式指定 geckodriver
- `FirefoxOptions.binary_location` 指定 Firefox 浏览器路径
- `git -c http.sslVerify=false` 跳过自签名证书验证
- Gitea REST API 创建仓库
## 仓库地址
- https://gitea.mymoyu.top/root/gz
## 下一步计划
- 加强错误处理与重试机制
- 考虑配置文件管理多套凭据
- 增加网络连通性预检测