Files
ios-location-track/.gitattributes
T
jbjf6666 94c152ba00 docs: 新增中英双语《使用方法.txt》
- 纯文本、记事本友好:UTF-8 with BOM + CRLF(老版记事本也能正确显示中文)
- 中文在前(9 节:是什么/安装/首次启动/连设备/使用/功能/数据位置/常见问题/已知限制),
  英文在后,共 505 行
- 覆盖 Windows 与 macOS 两个平台,含 11 条常见问题排查
- README.md / README.en.md 顶部加入口
- .gitattributes 为该文件单独锁定 CRLF(覆盖通用 *.txt eol=lf)
- Location.spec:随 Windows 包一起装到安装目录
2026-10-16 02:18:44 +08:00

62 lines
2.1 KiB
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.
# 统一换行符,避免 Windows 与 macOS 互相污染。
#
# 背景:本仓库现在同时支持 macOS 与 Windows。
# Windows 上 core.autocrlf=true 时,若没有本文件,Shell 脚本会被写成 CRLF ——
# 而 CRLF 的 .sh 在 macOS/Linux 上会直接报
# `bad interpreter: /bin/bash^M: no such file or directory`
# 反过来,PowerShell 脚本写成 LF 虽然多数情况能跑,但保持一致更省事。
#
# 注意:本文件**只影响之后新增/修改的文件**,不会重写历史。不要执行
# `git add --renormalize .`,那会把整个仓库的换行符翻一遍,产生巨大无意义 diff。
# 默认:交给 git 自动判断,并在仓库里统一存成 LF
* text=auto
# 本文件自身
.gitattributes text eol=lf
# Shell 脚本必须 LF(macOS / Linux 直接执行)
*.sh text eol=lf
*.bash text eol=lf
# PowerShell 脚本用 CRLF(Windows PowerShell 5.1 的习惯)
# ⚠️ scripts/*.ps1 是 **UTF-8 with BOM**:PowerShell 5.1 只有看到 BOM 才按 UTF-8
# 解析,否则会按系统 ANSI 代码页读,中文乱码并直接语法报错。
# 编辑这两个文件时务必保留 BOM。git 不会动 BOM,这里只锁换行符。
*.ps1 text eol=crlf
# Python / 前端 / 文档:LF
*.py text eol=lf
*.js text eol=lf
*.css text eol=lf
*.html text eol=lf
*.json text eol=lf
*.md text eol=lf
*.txt text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
# 面向 Windows 用户「直接用记事本打开」的纯文本说明:CRLF + UTF-8 BOM。
# git 不碰 BOM;这里只锁换行符。(后面的规则覆盖前面的,所以放在 *.txt 之后。)
使用方法.txt text eol=crlf
# 安装包脚本:CRLF
*.iss text eol=crlf
*.isl text eol=crlf
*.nsi text eol=crlf
*.bat text eol=crlf
*.cmd text eol=crlf
# 二进制:不要做任何换行转换
*.icns binary
*.ico binary
*.png binary
*.jpg binary
*.jpeg binary
*.dmg binary
*.dll binary
*.exe binary
*.zip binary
*.plist binary
*.trustcache binary