Skip to content

Commit

Permalink
macOS package: Change how VLC.app is created
Browse files Browse the repository at this point in the history
The build-package.sh is not longer requires, now that the rpath
and install_name it set correctly. Just copying from vlc_install_dir
is enough.

Fix #17725
  • Loading branch information
ePirat committed Feb 27, 2017
1 parent 2b5baef commit f6e51b0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion extras/package/macosx/package.mak
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ endif
$@/Contents/Resources/$${i}.lproj/ ; \
done
printf "APPLVLC#" >| $@/Contents/PkgInfo
PRODUCT="$@" build_dir=$(top_builddir) sh $(srcdir)/extras/package/macosx/build-package.sh
## Copy libs
mkdir -p $@/Contents/MacOS/lib
find $(prefix)/lib -name 'libvlc*.dylib' -maxdepth 1 -exec cp -a {} $@/Contents/MacOS/lib \;
## Copy plugins
mkdir -p $@/Contents/MacOS/plugins
find $(prefix)/lib/vlc/plugins -name 'lib*_plugin.dylib' -maxdepth 2 -exec cp -a {} $@/Contents/MacOS/plugins \;
## Install binary
cp $(prefix)/bin/vlc $@/Contents/MacOS/VLC
## Generate plugin cache
bin/vlc-cache-gen $@/Contents/MacOS/plugins
find $@ -type d -exec chmod ugo+rx '{}' \;
Expand Down

0 comments on commit f6e51b0

Please sign in to comment.