[vlc-commits] [Git][videolan/vlc][3.0.x] package/macosx: apply the CFNetwork workaround when bundling VLC.app
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Sep 14 12:20:47 UTC 2026
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
b204523d by Felix Paul Kühne at 2026-09-14T12:01:03+00:00
package/macosx: apply the CFNetwork workaround when bundling VLC.app
b36269203e only added that on the release path without applying it on
nightly builds so those never ran on Mac OS X 10.7
- - - - -
2 changed files:
- extras/package/macosx/build.sh
- extras/package/macosx/package.mak
Changes:
=====================================
extras/package/macosx/build.sh
=====================================
@@ -364,11 +364,6 @@ make -j$JOBS
info "Preparing VLC.app"
make VLC.app
-# Workaround for macOS 10.7: CFNetwork only exists as part of CoreServices framework
-if [ "$ARCH" = "x86_64" ]; then
- install_name_tool -change /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices VLC.app/Contents/MacOS/lib/libvlccore.dylib
-fi
-
if [ "$PACKAGETYPE" = "u" ]; then
info "Copying app with debug symbols into VLC-debug.app and stripping"
rm -rf VLC-debug.app
=====================================
extras/package/macosx/package.mak
=====================================
@@ -50,6 +50,10 @@ endif
## Copy libs
mkdir -p $@/Contents/MacOS/lib
find $(prefix)/lib -name 'libvlc*.dylib' -maxdepth 1 -exec cp -a {} $@/Contents/MacOS/lib \;
+ ## Workaround for macOS 10.7: CFNetwork only exists as part of CoreServices framework
+ if test "$(host_cpu)" = "x86_64"; then \
+ find $@/Contents/MacOS/lib -name 'libvlccore*.dylib' -maxdepth 1 -type f -exec install_name_tool -change /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices {} \; ; \
+ fi
## Copy plugins
mkdir -p $@/Contents/MacOS/plugins
find $(prefix)/lib/vlc/plugins -name 'lib*_plugin.dylib' -maxdepth 3 -exec cp -a {} $@/Contents/MacOS/plugins \;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b204523d6f5b49115f5b445a289aa8b71792ada4
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b204523d6f5b49115f5b445a289aa8b71792ada4
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list