Skip to content

Commit 41035c3

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 3503bb1 commit 41035c3

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
@@ -647,6 +647,13 @@ $(GUI_BUNDLE): $(BUNDLE) $(GUI_BUNDLE_DEP)
647647
| dylibbundler -of -cd -b -d $(GUI_BUNDLE)/Contents/libs \
648648
-x $(GUI_BUNDLE)/Contents/Frameworks/QtDBus.framework/QtDBus;\
649649
fi
650+
# TODO TOREMOVE: also libbrotlidec.1.dylib seem to be copied with macdeployqt
651+
# but without dependencies handled. However, the v1.2 (1.dylib is a symlink) is
652+
# bundled/fixed by uv so use that.
653+
if [ -f $(GUI_BUNDLE)/Contents/libs/libbrotlidec.1.dylib ]; then \
654+
cd $(GUI_BUNDLE)/Contents/libs/; rm libbrotlidec.1.dylib; \
655+
ln -s libbrotlidec*.dylib libbrotlidec.1.dylib; \
656+
fi
650657

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

0 commit comments

Comments
 (0)