[vlc-devel] [PATCH 2/2] apple: bundle.sh: check that we have dylibs before copying them

Alexandre Janniaux ajanni at videolabs.io
Thu Mar 11 16:29:17 UTC 2021


We don't want to copy dylibs if we built the test sample statically.
---
 extras/package/apple/bundle.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/extras/package/apple/bundle.sh b/extras/package/apple/bundle.sh
index e52761af82..80681beade 100755
--- a/extras/package/apple/bundle.sh
+++ b/extras/package/apple/bundle.sh
@@ -50,9 +50,11 @@ echo "APPL????" > "$APP/PkgInfo"
 # Frameworks/ directory, but since it is only designed for development usage
 # we can just put them there without further processing.
 mkdir -p "$APP/Frameworks"
+if [ -f "${BUILD_DIR}/lib/.libs/libvlc.dylib" ]; then
 cp "${BUILD_DIR}/lib/.libs/libvlc.dylib" "$APP/Frameworks"
 cp "${BUILD_DIR}/src/.libs/libvlccore.dylib" "$APP/Frameworks"
 find "${BUILD_DIR}/modules/.libs/" -name "*.dylib" -exec cp {} "$APP/Frameworks" \;
+fi
 
 # Archive the bundle into a .ipa file.
 zip -r "$IPA" Payload
-- 
2.30.1



More information about the vlc-devel mailing list