]> git.sesse.net Git - vlc/commitdiff
mac packaging: preserve symlinks while creating VLC.app
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sat, 30 Aug 2014 09:46:12 +0000 (11:46 +0200)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Sat, 30 Aug 2014 09:46:12 +0000 (11:46 +0200)
mac frameworks use symlinks for their internal structure. This
reduces size of delivered framework folders by a factor of 3.

Also correctly clean the BGHUDAppkit ressources folder. Info.plist
must remain for proper code signing.

extras/package/macosx/package.mak

index 00f9eb26afd929f402bb6b36f88e28a0c953ce6e..40e4fe5dc95c1df343d076c536aa8efe18f2a32a 100644 (file)
@@ -21,7 +21,8 @@ VLC.app: VLC-tmp
        PRODUCT="$@" ACTION="release-makefile" src_dir=$(srcdir) build_dir=$(top_builddir) sh $(srcdir)/extras/package/macosx/build-package.sh
        find $@ -type d -exec chmod ugo+rx '{}' \;
        find $@ -type f -exec chmod ugo+r '{}' \;
-       rm -Rf $@/Contents/Frameworks/BGHUDAppKit.framework/Resources/
+       rm -Rf $@/Contents/Frameworks/BGHUDAppKit.framework/Versions/A/Resources/BGHUDAppKitPlugin.ibplugin
+       rm -Rf $@/Contents/Frameworks/BGHUDAppKit.framework/Versions/A/Resources/README.textile
 
 
 VLC-tmp: vlc
@@ -45,8 +46,8 @@ VLC-tmp: vlc
        cd "$(srcdir)/modules/gui/macosx/" && cp *.h *.m $(abs_top_builddir)/tmp/modules/gui/macosx/
        cd $(top_builddir)/tmp/extras/package/macosx && \
                xcodebuild -target vlc SYMROOT=../../../build DSTROOT=../../../build $(silentstd)
-       cp -R -L $(top_builddir)/tmp/build/Default/VLC.bundle $@
-       mkdir -p $@/Contents/Frameworks && cp -R -L $(CONTRIB_DIR)/Growl.framework $@/Contents/Frameworks/
+       cp -R $(top_builddir)/tmp/build/Default/VLC.bundle $@
+       mkdir -p $@/Contents/Frameworks && cp -R $(CONTRIB_DIR)/Growl.framework $@/Contents/Frameworks/
        mkdir -p $@/Contents/MacOS/share/locale/
        cp -r "$(prefix)/lib/vlc/lua" "$(prefix)/share/vlc/lua" $@/Contents/MacOS/share/
        mkdir -p $@/Contents/MacOS/include/