From 2e56fee25fb65a0b11f6d8999d2f906e53238468 Mon Sep 17 00:00:00 2001 From: kushidou Date: Tue, 16 Jun 2026 17:03:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=97=A5=E5=BF=97=E9=87=87?= =?UTF-8?q?=E9=9B=86=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- opt/ktouch/kscreen-log | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/opt/ktouch/kscreen-log b/opt/ktouch/kscreen-log index f0dc1a6..67607a1 100644 --- a/opt/ktouch/kscreen-log +++ b/opt/ktouch/kscreen-log @@ -172,19 +172,14 @@ fi # ============================================ # 4. 程序本体 ─── program/ # ============================================ -echo " 采集程序文件清单..." +echo " 采集程序本体..." -# 文件列表(不复制整个目录,只记录清单 + md5) -find /opt/ktouch -type f 2>/dev/null | sort > "$DIR_PROGRAM/file_list.txt" +# 完整拷贝 /opt/ktouch(检查文件完整性 + 配置文件正确性) +cp -r /opt/ktouch "$DIR_PROGRAM/ktouch" + +# 同时生成 md5 清单,方便快速比对 find /opt/ktouch -type f -exec md5sum {} \; 2>/dev/null | sort > "$DIR_PROGRAM/file_md5.txt" || true -# 复制关键脚本(用于分析代码逻辑) -mkdir -p "$DIR_PROGRAM/scripts" -for s in kscreen-remap kscreen-remap-daemon kscreen-setup kscreen-debug kscreen-fix-daemon kscreen-log; do - [ -f "$LOG_PATH/$s" ] && cp "$LOG_PATH/$s" "$DIR_PROGRAM/scripts/" 2>/dev/null || true -done -[ -f "$LOG_PATH/display_monitor.py" ] && cp "$LOG_PATH/display_monitor.py" "$DIR_PROGRAM/scripts/" 2>/dev/null || true - # ============================================ # 5. 整理 & 打包 # ============================================