新增: 添加 GUI 启动器 (gui.py) 及系统托盘支持 #1357
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📜 标题(Title)
feat: 新增图形界面启动器 (GUI.py) 及系统托盘支持
🔍 描述(Description)
请描述这个PR做了什么/为什么这些更改是必要的:
为了方便不熟悉命令行的用户使用,新增了一个基于 Python 原生
tkinter库的图形化启动脚本GUI.py。主要变更如下:
GUI.py:subprocess调用main.py,支持一键开始/停止录制,并能优雅处理子进程退出。pystray库,支持点击关闭时最小化到系统托盘,实现后台静默运行。URL_config.ini和config.ini(强制使用utf-8-sig编码)。requirements.txt中添加了 GUI 托盘功能所需的pystray和Pillow。.gitignore中添加了ffmpeg.exe。📝 类型(Type of Change)
这个PR引入了哪种类型的更改?(请勾选所有适用的选项)
🏗️ 测试(Testing)
请描述您已经进行的测试:
✨ 额外特性 (DevOps)
新增了 GitHub Actions 工作流 (
.github/workflows/build_exe.yml)。main分支或发起 PR 时自动触发。DouyinLiveRecorder_GUI.exe。如果适用,请提供测试更改的说明:
pip install -r requirements.txtpython GUI.py📋 检查清单(Checklist)
在您创建这个PR之前,请确保以下所有框都被勾选,方法是在每个框中放置一个
x: