Enforce LF line endings via .gitattributes + ignore tauri-icon's extra outputs

Fixes the recurring 'Your local changes to Cargo.toml would be overwritten'
error on Windows pulls. Git-for-Windows defaults to core.autocrlf=true,
which made every text file appear modified vs the LF-stored versions.
'* text=auto eol=lf' in .gitattributes overrides autocrlf and forces a
stable LF checkout.

Also ignores Square*Logo.png, android/, ios/, 64x64.png, icon.png — these
are produced by 'pnpm tauri icon' but we ship only the canonical 5 files
(32, 128, 128@2x, .ico, .icns).
This commit is contained in:
megaproxy 2026-05-09 16:05:55 +01:00
parent 160e08d4a8
commit a1bbc6f8ba
2 changed files with 51 additions and 0 deletions

9
.gitignore vendored
View file

@ -48,6 +48,15 @@ src-tauri/Cargo.lock
*.tsbuildinfo
.vite/
# Extra outputs from `pnpm tauri icon` — we ship only the canonical set
# (32x32.png, 128x128.png, 128x128@2x.png, icon.ico, icon.icns).
src-tauri/icons/64x64.png
src-tauri/icons/icon.png
src-tauri/icons/Square*.png
src-tauri/icons/StoreLogo.png
src-tauri/icons/android/
src-tauri/icons/ios/
# Agent working files — meaningful to local Claude Code sessions, noise for
# anyone else. Kept out of the public repo (they still live on disk).
CLAUDE.md