Commit b11ebce6 authored by David Fuhrmann's avatar David Fuhrmann Committed by Jean-Baptiste Kempf

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.

(cherry picked from commit 468c9ea3a6231ee63a0de40bda63e28f9b431a46)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 6943eaa1
......@@ -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/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment