Repository navigation
Expand file tree
/
Copy path.gitattributes
More file actions
55 lines (52 loc) · 3.83 KB
/
Copy path.gitattributes
File metadata and controls
55 lines (52 loc) · 3.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
*.sh text eol=lf
# Published teammate compatibility fixtures retain the exact source bytes for SHA-256 verification.
apps/desktop/src/main/maker-ipc/__tests__/fixtures/released-teammate-host/*.ts.txt text eol=lf
# .mjs 脚本大多带 #!/usr/bin/env node shebang:Windows autocrlf 检出成 CRLF 后,
# vitest(vite 转换链)加载「CRLF + shebang」组合会直接 SyntaxError,unix 下直接执行也会坏,
# 与 *.sh 同理固定 LF 检出。
*.mjs text eol=lf
# git hook 没有扩展名,命不中上面两条。Windows autocrlf 检出成 CRLF 后 `#!/bin/sh\r`
# 无法执行,git commit 会直接 `fatal: cannot exec`——装了 hook 的人从此提交不了。
.githooks/** text eol=lf
# SQLite migration 内容参与用户数据库 drift hash;跨平台统一 LF。
apps/desktop/drizzle/**/*.sql text eol=lf
# design-tokens 影子层生成物参与「磁盘 = 内存生成」字节一致守卫;Windows
# autocrlf 检出转 CRLF 会让该守卫假红(classification.test.ts 实测),固定 LF。
packages/design-tokens/src/**/*.json text eol=lf
# sqlite-vec 扩展二进制(平台特定 .dylib / .dll)—— 走 Git LFS
apps/desktop/native/sqlite-vec/**/*.dylib filter=lfs diff=lfs merge=lfs -text
apps/desktop/native/sqlite-vec/**/*.dll filter=lfs diff=lfs merge=lfs -text
apps/desktop/native/sqlite-vec/**/*.so filter=lfs diff=lfs merge=lfs -text
# claude / codex / ripgrep CLI 二进制不再进 git/LFS——按需从上游下载
# (见 scripts/ensure-agent-binaries.mjs;版本 pin 在 tools/<kind>/latest.json)。
# Android platform-tools 二进制(adb.exe / AdbWin*.dll)不再进 git/LFS——Windows
# 打包前按 source.properties 的 pin 版本从上游下载并校验 sha256
# (见 apps/desktop/scripts/ensure-android-platform-tools.mjs);路径已在
# .gitignore 中排除。同目录的 NOTICE.txt 与 source.properties 是文本、照常入仓。
# cindy-updater.exe 不再进 git/LFS——Windows 打包的 prePackage 每次都从
# apps/desktop/cindy-updater/ 现场 cargo build 并覆盖 resources/ 下的产物
# (见 forge.config.ts buildCindyUpdater);路径已在 .gitignore 中排除。
# Windows updater 的两个 VC Runtime DLL 很小且必须让 release 构建完全离线可复现,
# 因此有意直接入 Git(不走 LFS);来源、版本和 sha256 见同目录 manifest.json。
apps/desktop/resources/cindy-updater-runtime/*.dll -text
# Pencil 设计稿(加密二进制,体积大且改动频繁)—— 走 Git LFS
*.pen filter=lfs diff=lfs merge=lfs -text
# Vendored browser-control-runtime:由 scripts/browser-runtime/sync.mjs 从上游同步生成,非手写源码。
# 标记为 generated,让 GitHub 在 PR diff 中默认折叠、排除出仓库语言统计,避免淹没 reviewer。
packages/browser-control-runtime/src/_generated/** linguist-generated=true
# ── 开源公开仓排除(内部专用,不进对外发布)────────────────────────────
# export-ignore 让 `git archive` 导出时自动剔除;若以「复制工作树 + git init」方式建
# 公开仓,则在新仓首次提交前排除服务端桥接和官方发布链路。
apps/mobile/scripts/release-*.mjs export-ignore
apps/mobile/scripts/release-*.sh export-ignore
apps/mobile/scripts/promote-*.mjs export-ignore
# DTCG generated whole files / marked regions: stable bytes on Windows as well.
apps/desktop/src/renderer/themes/colors.ts text eol=lf
apps/desktop/src/renderer/themes/builtin/*.ts text eol=lf
apps/desktop/src/renderer/styles/generated/* text eol=lf
apps/desktop/src/shared/generated/appearance-tokens.ts text eol=lf
apps/desktop/src/shared/windowBackdrop.ts text eol=lf
apps/desktop/tailwind.config.ts text eol=lf
docs/design-rules/DESIGN.md text eol=lf
# Generated WebRTC source is compared byte-for-byte on every platform.
packages/device-link/src/filePeerRuntimeSource.ts text eol=lf