Files
hermes-desktop/.gitattributes
T
toor 01d9e301fc
Build / build (push) Canceled after 0s
Playwright / browser (push) Canceled after 0s
initialize Electron desktop app and remove unused files
2026-10-25 01:09:01 +08:00

37 lines
1021 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 统一行尾:仓库内的文本文件一律 LF。
#
# 为什么需要:Windows 上 git 的 core.autocrlf 默认是 true,checkout 会把 LF
# 转成 CRLF。任何「按行读文件」的测试或脚本如果写死 '\n' 分割,就只会在
# Windows 上失败,而 Linux CI 上是绿的 —— 这种平台差异很难被注意到。
# 固定 LF 之后,Windows 和 Linux 拿到的是同一份字节,行为一致。
#
# 规则:
# * text=auto —— 让 git 自行判断是不是文本
# * eol=lf —— 无论平台,checkout 时都写成 LF
# -text —— 二进制文件,禁止行尾转换
* text=auto eol=lf
# 二进制资源:不参与行尾转换
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.webp binary
*.woff binary
*.woff2 binary
*.ttf binary
*.otf binary
*.eot binary
*.mp3 binary
*.mp4 binary
*.wav binary
*.pdf binary
*.zip binary
*.gz binary
*.wasm binary
# 锁文件由 npm 生成,保持原样不转换
package-lock.json -text