feat: OneKeyStart.bat 增强启动器 - 预检诊断 + 日志记录#532
Merged
Huanshere merged 1 commit intoHuanshere:mainfrom Mar 10, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Enhanced
OneKeyStart.batwith a Python-based pre-flight check system (launch.py) that validates the environment before launching Streamlit. Silently logs diagnostics tologs/— only shows output when problems are detected.增强
OneKeyStart.bat,新增 Python 启动器launch.py,在启动 Streamlit 前自动检查环境。诊断信息静默写入logs/目录,只在检测到问题时才在屏幕上显示。What it checks / 检查项
streamlitinstalledjson_repairinstalledtorch+ CUDA availablewhisperxinstalledffmpegin PATHBehavior / 行为
logs/startup_YYYYMMDD_HHMMSS.logpynvml FutureWarning,use_container_widthdeprecation)一切正常时屏幕零输出,直接进 Streamlit。有问题才显示。所有诊断写入日志文件。
Files changed / 改动文件
OneKeyStart.batlaunch.pyinstead of directly running streamlit; suppresses Python warningslaunch.py.gitignorelogs/docs/pages/docs/start.zh-CN.md一键启动.bat→OneKeyStart.batdocs/pages/docs/start.en-US.mdOneKeyStart.batmention in step 4Testing / 测试
Tested on Windows 11 by double-clicking
OneKeyStart.bat:logs/