From: David Fuhrmann Date: Sat, 30 Aug 2014 09:46:12 +0000 (+0200) Subject: mac packaging: preserve symlinks while creating VLC.app X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=468c9ea3a6231ee63a0de40bda63e28f9b431a46;p=vlc mac packaging: preserve symlinks while creating VLC.app 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. --- diff --git a/extras/package/macosx/package.mak b/extras/package/macosx/package.mak index 00f9eb26af..40e4fe5dc9 100644 --- a/extras/package/macosx/package.mak +++ b/extras/package/macosx/package.mak @@ -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/