Skip to content

Commit

Permalink
obs-browser: Update to browser source refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jp9000 committed Apr 14, 2018
1 parent 89a5235 commit 30d967e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 20 deletions.
20 changes: 11 additions & 9 deletions CI/before-deploy-osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ export FILENAME=$FILE_DATE-$GIT_HASH-$TRAVIS_BRANCH-osx.pkg

cd ./build

# Move the CEF plugin out before running build_app so that it doesn't get packaged twice
hr "Moving CEF out to preserve linking"
mv ./rundir/RelWithDebInfo/obs-plugins/CEF.app ./
mv ./rundir/RelWithDebInfo/obs-plugins/obs-browser.so ./

# Move obslua
hr "Moving OBS LUA"
mv ./rundir/RelWithDebInfo/data/obs-scripting/obslua.so ./rundir/RelWithDebInfo/bin/
Expand All @@ -37,10 +32,17 @@ fi

sudo python ../CI/install/osx/build_app.py --public-key ../CI/install/osx/OBSPublicDSAKey.pem --sparkle-framework ../../sparkle/Sparkle.framework --base-url "https://obsproject.com/osx_update" --stable=$STABLE

# Move the CEF plugin back to where it belongs
hr "Moving CEF back"
mv ./CEF.app ./rundir/RelWithDebInfo/obs-plugins/
mv ./obs-browser.so ./rundir/RelWithDebInfo/obs-plugins/
# Copy Chromium embedded framework to app Frameworks directory
hr "Copying Chromium Embedded Framework.framework"
sudo cp -r ../../cef_binary_${CEF_BUILD_VERSION}_macosx64/Release/Chromium\ Embedded\ Framework.framework OBS.app/Contents/Frameworks
sudo install_name_tool -change \
@rpath/Frameworks/Chromium\ Embedded\ Framework.framework/Chromium\ Embedded\ Framework \
../../Frameworks/Chromium\ Embedded\ Framework.framework/Chromium\ Embedded\ Framework \
OBS.app/Contents/Resources/obs-plugins/obs-browser.so
sudo install_name_tool -change \
@rpath/Frameworks/Chromium\ Embedded\ Framework.framework/Chromium\ Embedded\ Framework \
../../Frameworks/Chromium\ Embedded\ Framework.framework/Chromium\ Embedded\ Framework \
OBS.app/Contents/Resources/obs-plugins/cef-bootstrap

# Package app
hr "Generating .pkg"
Expand Down
6 changes: 1 addition & 5 deletions CI/before-script-osx.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# Make sure ccache is found
export PATH=/usr/local/opt/ccache/libexec:$PATH

cd ./plugins/obs-browser
git checkout origin/osx
cd -

mkdir build
cd build
cmake -DENABLE_SPARKLE_UPDATER=ON \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.10 \
-DDepsPath=/tmp/obsdeps \
-DVLCPath=$PWD/../../vlc-master \
-DBUILD_BROWSER=ON \
-DCEF_ROOT_DIR=$PWD/../../cef_binary_${CEF_BUILD_VERSION}_macosx64 ..
-DCEF_ROOT_DIR=$PWD/../../cef_binary_${CEF_BUILD_VERSION}_macosx64 ..
2 changes: 1 addition & 1 deletion CI/install/osx/CMakeLists.pkgproj
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<key>GID</key>
<integer>80</integer>
<key>PATH</key>
<string>../../../build/plugins/obs-browser/CEF.app</string>
<string>../../../build/plugins/obs-browser/cef-bootstrap</string>
<key>PATH_TYPE</key>
<integer>3</integer>
<key>PERMISSIONS</key>
Expand Down
4 changes: 0 additions & 4 deletions CI/install/osx/post-install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/usr/bin/env bash

# Fix permissions on CEF
chmod 744 "/Library/Application Support/obs-studio/plugins/obs-browser/bin/CEF.app/Contents/Info.plist"
chmod 744 "/Library/Application Support/obs-studio/plugins/obs-browser/bin/CEF.app/Contents/Frameworks/CEF Helper.app/Contents/Info.plist"
2 changes: 1 addition & 1 deletion plugins/obs-browser

0 comments on commit 30d967e

Please sign in to comment.