Skip to content

Commit f9963c4

Browse files
committed
CI macOS 14 (arm64) deployment fix
It seems like libbrotlidec.1.dylib is dependency of Qt but incorrectly deployed by macdepoloyqt - just the library (that is symlink to libbrotlidec.1.2.dylib) but not its dependency @rpath/libbrotlicommon.1.dylib (+ fix path). Since libbrotlidec.1.2.dylib is already deployed and fixed as a dependency of uv (AFAIK through lavc->libjxl), just symlink that. fixes <#478>
1 parent 24bd7bf commit f9963c4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,13 @@ $(GUI_BUNDLE): $(BUNDLE) $(GUI_BUNDLE_DEP)
649649
| dylibbundler -of -cd -b -d $(GUI_BUNDLE)/Contents/libs \
650650
-x $(GUI_BUNDLE)/Contents/Frameworks/QtDBus.framework/QtDBus;\
651651
fi
652+
# TODO TOREMOVE: also libbrotlidec.1.dylib seem to be copied with macdeployqt
653+
# but without dependencies handled. However, the v1.2 (1.dylib is a symlink) is
654+
# bundled/fixed by uv so use that.
655+
if [ -f $(GUI_BUNDLE)/Contents/libs/libbrotlidec.1.dylib ]; then \
656+
cd $(GUI_BUNDLE)/Contents/libs/; rm libbrotlidec.1.dylib; \
657+
ln -s libbrotlidec*.dylib libbrotlidec.1.dylib; \
658+
fi
652659

653660
defaults write `pwd`/$(GUI_BUNDLE)/Contents/Info.plist NSCameraUsageDescription \
654661
'Allow camera for video capture'

0 commit comments

Comments
 (0)