aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-06-08 17:16:13 -0500
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-06-08 17:17:12 -0500
commitd453ed91b6dc332fd45987c642e9d230efe870c8 (patch)
tree4a9e6d647e912580d78105682941f704099f1167 /docker
parentdd3a3a356f46fa064b60cd7e000c7bc5633430b7 (diff)
Fix NuGet cert setup and fontconfig env
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/build-inner.sh24
1 files changed, 23 insertions, 1 deletions
diff --git a/docker/build-inner.sh b/docker/build-inner.sh
index 9c05783..3cc5559 100755
--- a/docker/build-inner.sh
+++ b/docker/build-inner.sh
@@ -39,7 +39,11 @@ cmake -S . -B build -G Ninja \
-DFLUORINE_BUILD_COMMIT="${FLUORINE_BUILD_COMMIT}" \
"${CMAKE_EXTRA_ARGS[@]}"
-cmake --build build --parallel "${BUILD_JOBS:-}"
+if [ -n "${BUILD_JOBS:-}" ]; then
+ cmake --build build --parallel "${BUILD_JOBS}"
+else
+ cmake --build build --parallel
+fi
MODORG_BIN="build/src/src/ModOrganizer"
if [ ! -f "${MODORG_BIN}" ]; then
@@ -610,6 +614,24 @@ unset PYTHONPATH PYTHONNOUSERSITE PYTHONHOME MO2_PYTHON_DIR
export QT_PLUGIN_PATH="${RUN}/qt6plugins"
export QT_QPA_PLATFORM_PLUGIN_PATH="${RUN}/qt6plugins/platforms"
+# The portable bundle ships its own fontconfig library. If it reads the host's
+# newer /etc/fonts configuration, older bundled fontconfig can warn on syntax
+# like xsi:nil and newer generic families. Use a minimal compatible config for
+# Fluorine itself; launched games/tools restore the user's original env.
+mkdir -p "${RUN}/etc/fonts"
+cat > "${RUN}/etc/fonts/fonts.conf" <<EOF
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
+<fontconfig>
+ <dir>/usr/share/fonts</dir>
+ <dir>/usr/local/share/fonts</dir>
+ <dir prefix="xdg">fonts</dir>
+ <cachedir prefix="xdg">fontconfig</cachedir>
+</fontconfig>
+EOF
+export FONTCONFIG_FILE="${RUN}/etc/fonts/fonts.conf"
+export FONTCONFIG_PATH="${RUN}/etc/fonts"
+
# Raise open file descriptor limit — large modlists with FUSE VFS
# can easily exceed the default 1024
ulimit -n 65536 2>/dev/null