From 04cbd0b627e9ff0583913549a03a1bb34ecddc2d Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Tue, 30 Jun 2026 15:53:30 -0600 Subject: [PATCH] build: mount static/ into the cross container for qbz-ui fonts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit qbz-ui's Slint build imports the lyrics fonts from the repo root (../../../../static/fonts/*.ttf), which is outside the crates/ workspace cross mounts — so the cross build couldn't find them. Mount static/ at its host path via CROSS_CONTAINER_OPTS. cc --- scripts/build-aarch64-linux.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build-aarch64-linux.sh b/scripts/build-aarch64-linux.sh index 584979bf9..9b64f673f 100755 --- a/scripts/build-aarch64-linux.sh +++ b/scripts/build-aarch64-linux.sh @@ -71,7 +71,11 @@ case "$arch" in # (losing the build) instead of swap-thrashing the host into a hard freeze # — the dev box has no hibernation and dies under memory pressure. Override # via CROSS_CONTAINER_OPTS if your box has more headroom. - export CROSS_CONTAINER_OPTS="${CROSS_CONTAINER_OPTS:---memory=18g --memory-swap=26g}" + # qbz-ui's Slint build imports fonts from the REPO ROOT (../../../../static/ + # fonts/*.ttf) — outside the `crates/` workspace that cross mounts. Mount + # static/ at its host path so those relative imports resolve in the + # container (cross 0.2.x mounts the project at the host path). + export CROSS_CONTAINER_OPTS="${CROSS_CONTAINER_OPTS:---memory=18g --memory-swap=26g} --volume $REPO/static:$REPO/static:ro" # Cross.toml (workspace root) injects the arm64 dev libs into the image. ( cd crates && cross build --release --target "$TARGET" -p qbz ) install -Dm755 "crates/target/$TARGET/release/qbz" "$OUT"