Created
January 15, 2018 13:35
-
-
Save NexAdn/47d2ef526da833eeff9f697f206e6a8f to your computer and use it in GitHub Desktop.
Installation script for obs-linuxbrowser with cef-minimal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Change to '32' when installing on a 32-bit machine | |
ARCH=64 | |
CEF_VER=3.3239.1723.g071d1c1 | |
LINUXBROWSER_VER=0.3.1 | |
CEF_DIR=/opt/cef | |
OBS_INCLUDE=/usr/include/obs | |
OBS_LIB=/usr/lib | |
TMP=/tmp | |
echo ":: Creating working directories..." | |
cd $TMP | |
echo " -> Creating CEF temporary directory..." | |
mkdir -p $TMP/cef-minimal | |
echo ":: Downloading sources..." | |
echo " -> cef-minimal" | |
cd $TMP/cef-minimal | |
wget -O ./cef-minimal.tar.bz2 "http://opensource.spotify.com/cefbuilds/cef_binary_${CEF_VER}_linux${ARCH}_minimal.tar.bz2" | |
tar -jxvf ./cef-minimal.tar.bz2 | |
echo " -> obs-linuxbrowser" | |
cd $TMP | |
git clone git://github.com/bazukas/obs-linuxbrowser | |
cd $TMP/obs-linuxbrowser | |
git checkout ${LINUXBROWSER_VER} | |
echo ":: Compiling and installing cef-minimal..." | |
cd "$TMP/cef-minimal/cef_binary_${CEF_VER}_linux${ARCH}_minimal/" | |
echo " -> Compiling" | |
sed '/^add_subdirectory[\(]tests[\/].*/d' -i CMakeLists.txt | |
cmake . | |
make clean | |
make -j4 libcef_dll_wrapper | |
echo " -> Installing" | |
sudo mkdir -p ${CEF_DIR} | |
sudo cp -R ./* ${CEF_DIR}/ | |
echo ":: Compiling and installing obs-linuxbrowser..." | |
cd "$TMP/obs-linuxbrowser/" | |
mkdir -p ./build | |
cd ./build | |
echo " -> Compiling" | |
cmake -D CEF_DIR=${CEF_DIR} OBS_INCLUDE=${OBS_INCLUDE} OBS_LIB=${OBS_LIB} .. | |
cd .. | |
make -j4 | |
echo " -> Installing" | |
make install | |
echo "===> Installation complete" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment