From 55b5ec73214ddef24aa1611cabb4d7e0dee9bff5 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 25 Dec 2023 19:41:00 +1000 Subject: [PATCH] Qt: Patch macdeployqt to always deploy Qt SVG imageformat plugin --- scripts/build-dependencies-mac.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/scripts/build-dependencies-mac.sh b/scripts/build-dependencies-mac.sh index 88f3f96db..50d2d3942 100755 --- a/scripts/build-dependencies-mac.sh +++ b/scripts/build-dependencies-mac.sh @@ -102,6 +102,32 @@ cd .. echo "Installing Qt Base..." tar xf "qtbase-everywhere-src-$QT.tar.xz" cd "qtbase-everywhere-src-$QT" + +# since we don't have a direct reference to QtSvg, it doesn't deployed directly from the main binary +# (only indirectly from iconengines), and the libqsvg.dylib imageformat plugin does not get deployed. +# We could run macdeployqt twice, but that's even more janky than patching it. +patch -u src/tools/macdeployqt/shared/shared.cpp <