feat: 启动时文件完整性检查与自动修复 - #150
Open
ikunshare988 wants to merge 1 commit into
Open
ikunshare988 wants to merge 1 commit into
ikunshare988 wants to merge 1 commit into
Conversation
- 新增 app/core/file_backup.py:首次启动创建 SHA-256 基线备份, 之后每次启动对比清单,发现被修改/丢失文件时提示并自动修复 - main.py 在启动自检前执行完整性检查;备份目录位于项目目录之外 的同盘隐藏目录,并设置 ACL 防误删 - 使用 runtime_log.log_event 记录开始/进度/结束/结果日志
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.
概述
在启动流程中新增文件完整性检查功能,通过 SHA-256 基线备份对比检测核心文件是否被修改或丢失,并在确认后自动修复。
变更内容
新增文件
修改文件
排除项
untime/\、_pycache_/\
测试