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>
16 lines
674 B
Bash
Executable File
16 lines
674 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# CEF's minimal build at cef-rs's pin, SHA-1 checked, into engines/cef.
|
|
set -euo pipefail
|
|
|
|
root=$(cd "$(dirname "$0")/.." && pwd)
|
|
[ -d "$root/reference/cef-rs" ] || { echo "fetch-cef: run scripts/fetch-references.sh first" >&2; exit 1; }
|
|
# Not the system temp: Windows may block programs there.
|
|
mkdir -p "$root/engines"
|
|
work=$(mktemp -d "$root/engines/cef-export.XXXXXX")
|
|
trap 'rm -rf "$work"' EXIT
|
|
cd "$root/reference/cef-rs"
|
|
# The exporter checks each archive against CEF's own index.
|
|
CARGO_TARGET_DIR="$work" cargo run -q -p export-cef-dir -- --force "$root/engines/cef"
|
|
rm -f "$root"/engines/cef_binary_*.tar.bz2
|
|
cat "$root/engines/cef/archive.json"
|