mirror of
https://github.com/OLmatter/glm-coding-helper.git
synced 2026-10-07 16:28:29 +08:00
Root cause (per Dixon): repo had no .gitattributes, so on Windows git checkout converted shell scripts to CRLF; release zips built on Windows then carried CRLF -> macOS/Linux users hit /bin/bash^M: bad interpreter. Fix (two layers): - Add .gitattributes: *.sh/*.command = eol=lf (force LF on checkout/commit), *.ps1/*.cmd = eol=crlf (PS/cmd friendly), JS/py/md = lf, binaries = binary. - build_release_zips.ps1 / build_portable.ps1: when writing .sh/.command into the zip, replace CRLF with LF (defense-in-depth even if autocrlf slipped). Also normalize scripts/setup_backend_macos.sh (was CRLF in working tree). Verified: new zips have ALL .sh/.command as LF.