#!/bin/sh # Fetch the pinned RmlUi release into third_party/ (git-ignored — vendored source, not committed). # The Makefile builds its core into build/rmlui/ via CMake the first time `make app` runs. set -e VER=6.2 SHA256=814c3ff7b9666280338d8f0dda85979f5daf028d01c85fc8975431d1e2fd8e8b cd "$(dirname "$0")/.." [ -d "third_party/RmlUi-$VER" ] && { echo "third_party/RmlUi-$VER already present"; exit 0; } mkdir -p third_party TARBALL=third_party/rmlui-$VER.tar.gz curl -sL --fail -o "$TARBALL" "https://github.com/mikke89/RmlUi/archive/refs/tags/$VER.tar.gz" echo "$SHA256 $TARBALL" | shasum -a 256 -c - || { echo "checksum mismatch — refusing to unpack"; rm -f "$TARBALL"; exit 1; } tar -xzf "$TARBALL" -C third_party rm -f "$TARBALL" echo "RmlUi $VER unpacked to third_party/RmlUi-$VER"