Skip to content

Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.

cabextract source from Highball's own release first, the author's site second, both hash-checked (the gate died on a TLS refusal from cabextract.org.uk)

Gauthier Piarrettedf7fdc3d1b51
diff --git a/spike/tools/build-cabextract.sh b/spike/tools/build-cabextract.sh
index a442de8..a9e2f1a 100755
--- a/spike/tools/build-cabextract.sh
+++ b/spike/tools/build-cabextract.sh
@@ -6,10 +6,18 @@ set -euo pipefail
cd "$(dirname "$0")"
VERSION=1.11
SHA=b5546db1155e4c718ff3d4b278573604f30dd64c3c5bfd4657cd089b823a3ac6
-URL="https://www.cabextract.org.uk/cabextract-$VERSION.tar.gz"
+# The same tarball under Highball's own release first, the author's site second: the release
+# gate died on 2026-09-21 because cabextract.org.uk refused TLS for a while, and a gate must not
+# depend on a site we do not run. Both copies are checked against the pinned hash.
+URLS=("https://github.com/gauthierpiarrette/highball/releases/download/engine-components/cabextract-$VERSION.tar.gz"
+ "https://www.cabextract.org.uk/cabextract-$VERSION.tar.gz")
WORK="$(mktemp -d)"; trap 'rm -rf "$WORK"' EXIT
-curl -sSL -o "$WORK/src.tar.gz" "$URL"
-echo "$SHA $WORK/src.tar.gz" | shasum -a 256 -c - >/dev/null
+ok=0
+for url in "${URLS[@]}"; do
+ curl -sSL --max-time 120 -o "$WORK/src.tar.gz" "$url" || continue
+ echo "$SHA $WORK/src.tar.gz" | shasum -a 256 -c - >/dev/null 2>&1 && { ok=1; break; }
+done
+[ "$ok" = 1 ] || { echo "cabextract $VERSION: no source matching $SHA from ${URLS[*]}" >&2; exit 1; }
tar -xzf "$WORK/src.tar.gz" -C "$WORK"
cd "$WORK/cabextract-$VERSION"
./configure --prefix="$WORK/out" >/dev/null