[vlc-commits] mac packaging: preserve symlinks while creating VLC.app

David Fuhrmann git at videolan.org
Sat Aug 30 11:48:43 CEST 2014


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Aug 30 11:46:12 2014 +0200| [468c9ea3a6231ee63a0de40bda63e28f9b431a46] | committer: David Fuhrmann

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=468c9ea3a6231ee63a0de40bda63e28f9b431a46
---

 extras/package/macosx/package.mak |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/extras/package/macosx/package.mak b/extras/package/macosx/package.mak
index 00f9eb2..40e4fe5 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/



More information about the vlc-commits mailing list