Windows and Linux build environments; check clean on both (E-01)

MuPDF builds with MSBuild on Windows (/MT, OpenSSL from vcpkg);
Git for Windows' MinGit stands in for the source build there. CEF
loads from where libcef lives and sets its API version first on
every platform. File identity on Windows compares volume and index.
The checkout and reference/ keep LF on Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-10 03:53:56 -04:00
1 parent d59159cea2
commit 68b5af76e0
40 files changed
+380 -82

No files matched your search

+20
View File
@@ -7,6 +7,26 @@ src=$root/engines/git-src
out=$root/engines/git
jobs=$(sysctl -n hw.ncpu 2>/dev/null || nproc)
# Windows: Git for Windows' MinGit at the same version, checked.
case $(uname -s) in
MINGW* | MSYS*)
asset=MinGit-2.56.0-64-bit.zip
sum=064b440ff870ed5198527e8f3a92cdf5bd2fd0fedf5e718af95e3fdaddeff718
work=$(mktemp -d)
trap 'rm -rf "$work"' EXIT
curl -fsSL -o "$work/$asset" "https://github.com/git-for-windows/git/releases/download/v2.56.0.windows.1/$asset"
got=$(shasum -a 256 "$work/$asset" | cut -d' ' -f1)
[ "$got" = "$sum" ] || {
echo "build-git.sh: $asset hash $got, want $sum" >&2
exit 1
}
rm -rf "$out"
unzip -q "$work/$asset" -d "$out"
"$out/cmd/git.exe" --version
exit 0
;;
esac
# reference/ stays read-only; the build runs in a copy.
mkdir -p "$src"
rsync -a --delete --exclude .git "$root/reference/git/" "$src/"