diff --git a/scripts/publish-github.sh b/scripts/publish-github.sh index db123e4..bcb8eb0 100755 --- a/scripts/publish-github.sh +++ b/scripts/publish-github.sh @@ -33,6 +33,10 @@ if command -v git-lfs >/dev/null 2>&1; then done fi +# 2.5) 公開端不吃 LFS:刪掉 .gitattributes,否則 mirror commit 時 git-lfs 會把 +# 實體檔又轉回 pointer 上傳(GitHub README 圖就破了——2026-07-18 實撞) +rm -f "$TMP_EXPORT/.gitattributes" + # 3) 套排除清單 while IFS= read -r p; do case "$p" in ''|\#*) continue ;; esac