forked from mirrors/linphone-iphone
Add a post-install script to the MacOSX installer to download libopenh264
This commit is contained in:
parent
bb1046fb87
commit
9e915bc644
3 changed files with 18 additions and 2 deletions
|
|
@ -242,7 +242,7 @@ signed-bundle: $(MACAPPNAME)
|
|||
cd $(BUNDLEDIR)/.. && rm -f $(MAXAPPDMG) && hdiutil create $(MACAPPDMG) -srcfolder $(MACAPPNAME) -ov && cd -
|
||||
|
||||
pkg: $(MACAPPNAME)
|
||||
pkgbuild --install-location /Applications --component $(MACAPPNAME) $(MACAPPPKG)
|
||||
pkgbuild --install-location /Applications --scripts ${srcdir}/build/macos/pkg-scripts --component $(MACAPPNAME) $(MACAPPPKG)
|
||||
|
||||
|
||||
###
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
EXTRA_DIST=linphone.bundle environment.sh Info-linphone.plist.in
|
||||
EXTRA_DIST=linphone.bundle environment.sh Info-linphone.plist.in pkg-scripts/*
|
||||
|
||||
|
||||
|
|
|
|||
16
build/macos/pkg-scripts/postinstall
Executable file
16
build/macos/pkg-scripts/postinstall
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
CURL=/usr/bin/curl
|
||||
BUNZIP2=/usr/bin/bunzip2
|
||||
VERSION=1.4.0
|
||||
BASENAME=libopenh264-${VERSION}-osx64
|
||||
FILENAME=${BASENAME}.dylib.bz2
|
||||
TMPDIR=/tmp/linphone_installer
|
||||
|
||||
mkdir ${TMPDIR}
|
||||
cd ${TMPDIR}
|
||||
${CURL} http://ciscobinary.openh264.org/${FILENAME} > ${FILENAME}
|
||||
${BUNZIP2} ${FILENAME}
|
||||
cp ${BASENAME}.dylib /Applications/Linphone.app/Contents/Resources/lib/libopenh264.0.dylib
|
||||
rm -r ${TMPDIR}
|
||||
|
||||
Loading…
Add table
Reference in a new issue