From 67aeb72b20eab65fb81d450df42f3a29b61b555d Mon Sep 17 00:00:00 2001 From: Yige Date: Sun, 30 Aug 2026 15:40:58 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BA=E5=AE=9A=20Registry=20?= =?UTF-8?q?=E5=8F=97=E4=BF=A1=E6=96=87=E6=9C=AC=E6=8D=A2=E8=A1=8C=20(#4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 9 +++++++++ README.md | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..2286122 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ +* text=auto eol=lf + +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.webp binary +*.ico binary +*.zip binary diff --git a/README.md b/README.md index c089739..56d9303 100644 --- a/README.md +++ b/README.md @@ -323,6 +323,10 @@ DesireCore 客户端的同步流程: 门禁校验后再打包,**绝不执行本 checkout 携带的脚本**。两侧任一校验失败都不能生成新的 `defaults/registry.zip`。 +`.gitattributes` 将所有文本固定为 LF;这是跨平台信任边界的一部分。主仓固定 authored Schema +与受审内容摘要,Windows checkout 不得把已审核的 JSON/Markdown 改写为 CRLF,否则运行时会 +按哈希不匹配失败关闭整个官方 v4 目录。 + ## 贡献指南 1. Fork 本仓库