2019-10-15 16:59:32 -07:00
|
|
|
rm -rf ./OBS.app
|
|
|
|
|
|
|
|
mkdir OBS.app
|
|
|
|
mkdir OBS.app/Contents
|
|
|
|
mkdir OBS.app/Contents/MacOS
|
|
|
|
mkdir OBS.app/Contents/Plugins
|
|
|
|
mkdir OBS.app/Contents/Resources
|
|
|
|
|
2019-12-14 04:13:44 -08:00
|
|
|
cp -R rundir/RelWithDebInfo/bin/ ./OBS.app/Contents/MacOS
|
|
|
|
cp -R rundir/RelWithDebInfo/data ./OBS.app/Contents/Resources
|
2019-10-15 16:59:32 -07:00
|
|
|
cp ../CI/install/osx/obs.icns ./OBS.app/Contents/Resources
|
2019-12-14 04:13:44 -08:00
|
|
|
cp -R rundir/RelWithDebInfo/obs-plugins/ ./OBS.app/Contents/Plugins
|
2019-10-15 16:59:32 -07:00
|
|
|
cp ../CI/install/osx/Info.plist ./OBS.app/Contents
|
|
|
|
|
|
|
|
../CI/install/osx/dylibBundler -b -cd -d ./OBS.app/Contents/Frameworks -p @executable_path/../Frameworks/ \
|
|
|
|
-s ./OBS.app/Contents/MacOS \
|
|
|
|
-s /usr/local/opt/mbedtls/lib/ \
|
|
|
|
-x ./OBS.app/Contents/Plugins/coreaudio-encoder.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/decklink-ouput-ui.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/frontend-tools.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/image-source.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/linux-jack.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/mac-avcapture.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/mac-capture.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/mac-decklink.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/mac-syphon.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/mac-vth264.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/obs-browser.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/obs-browser-page \
|
|
|
|
-x ./OBS.app/Contents/Plugins/obs-ffmpeg.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/obs-filters.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/obs-transitions.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/obs-vst.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/rtmp-services.so \
|
|
|
|
-x ./OBS.app/Contents/MacOS/obs \
|
|
|
|
-x ./OBS.app/Contents/MacOS/obs-ffmpeg-mux \
|
|
|
|
-x ./OBS.app/Contents/MacOS/obslua.so \
|
2019-11-17 13:11:44 -08:00
|
|
|
-x ./OBS.app/Contents/MacOS/_obspython.so \
|
2019-10-15 16:59:32 -07:00
|
|
|
-x ./OBS.app/Contents/Plugins/obs-x264.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/text-freetype2.so \
|
|
|
|
-x ./OBS.app/Contents/Plugins/obs-libfdk.so
|
|
|
|
# -x ./OBS.app/Contents/Plugins/obs-outputs.so \
|
|
|
|
|
|
|
|
/usr/local/Cellar/qt/5.10.1/bin/macdeployqt ./OBS.app
|
|
|
|
|
|
|
|
mv ./OBS.app/Contents/MacOS/libobs-opengl.so ./OBS.app/Contents/Frameworks
|
|
|
|
|
|
|
|
# put qt network in here becasuse streamdeck uses it
|
2019-12-11 15:32:04 -08:00
|
|
|
cp -R /usr/local/opt/qt/lib/QtNetwork.framework ./OBS.app/Contents/Frameworks
|
2019-12-14 04:13:44 -08:00
|
|
|
chmod -R +w ./OBS.app/Contents/Frameworks/QtNetwork.framework
|
2019-12-11 21:04:51 -08:00
|
|
|
rm -r ./OBS.app/Contents/Frameworks/QtNetwork.framework/Headers
|
|
|
|
rm -r ./OBS.app/Contents/Frameworks/QtNetwork.framework/QtNetwork.prl
|
|
|
|
rm -r ./OBS.app/Contents/Frameworks/QtNetwork.framework/Versions/5/Headers/
|
|
|
|
chmod 644 ./OBS.app/Contents/Frameworks/QtNetwork.framework/Versions/5/Resources/Info.plist
|
2019-12-16 04:37:16 -08:00
|
|
|
install_name_tool -id @executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork ./OBS.app/Contents/Frameworks/QtNetwork.framework/Versions/5/QtNetwork
|
2019-10-15 16:59:32 -07:00
|
|
|
install_name_tool -change /usr/local/Cellar/qt/5.10.1/lib/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore ./OBS.app/Contents/Frameworks/QtNetwork.framework/Versions/5/QtNetwork
|
|
|
|
|
2019-12-11 21:04:51 -08:00
|
|
|
|
2019-10-15 16:59:32 -07:00
|
|
|
# decklink ui qt
|
|
|
|
install_name_tool -change /usr/local/opt/qt/lib/QtGui.framework/Versions/5/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui ./OBS.app/Contents/Plugins/decklink-ouput-ui.so
|
|
|
|
install_name_tool -change /usr/local/opt/qt/lib/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore ./OBS.app/Contents/Plugins/decklink-ouput-ui.so
|
|
|
|
install_name_tool -change /usr/local/opt/qt/lib/QtWidgets.framework/Versions/5/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets ./OBS.app/Contents/Plugins/decklink-ouput-ui.so
|
|
|
|
|
|
|
|
# frontend tools qt
|
|
|
|
install_name_tool -change /usr/local/opt/qt/lib/QtGui.framework/Versions/5/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui ./OBS.app/Contents/Plugins/frontend-tools.so
|
|
|
|
install_name_tool -change /usr/local/opt/qt/lib/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore ./OBS.app/Contents/Plugins/frontend-tools.so
|
|
|
|
install_name_tool -change /usr/local/opt/qt/lib/QtWidgets.framework/Versions/5/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets ./OBS.app/Contents/Plugins/frontend-tools.so
|
|
|
|
|
|
|
|
# vst qt
|
|
|
|
install_name_tool -change /usr/local/opt/qt/lib/QtGui.framework/Versions/5/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui ./OBS.app/Contents/Plugins/obs-vst.so
|
|
|
|
install_name_tool -change /usr/local/opt/qt/lib/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore ./OBS.app/Contents/Plugins/obs-vst.so
|
|
|
|
install_name_tool -change /usr/local/opt/qt/lib/QtWidgets.framework/Versions/5/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets ./OBS.app/Contents/Plugins/obs-vst.so
|
|
|
|
install_name_tool -change /usr/local/opt/qt/lib/QtMacExtras.framework/Versions/5/QtMacExtras @executable_path/../Frameworks/QtMacExtras.framework/Versions/5/QtMacExtras ./OBS.app/Contents/Plugins/obs-vst.so
|