From 5e1c5a9b2ad0cc40ed3b79272e7bb0664869848a Mon Sep 17 00:00:00 2001 From: Botspot Date: Wed, 25 Aug 2021 10:55:15 -0500 Subject: [PATCH] OBS Studio: remove obs-studio package first --- apps/OBS Studio/install-32 | 6 ++++++ apps/OBS Studio/install-64 | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/apps/OBS Studio/install-32 b/apps/OBS Studio/install-32 index 3922399..4855c6c 100755 --- a/apps/OBS Studio/install-32 +++ b/apps/OBS Studio/install-32 @@ -15,6 +15,12 @@ wget http://ftp.debian.org/debian/pool/non-free/f/fdk-aac/libfdk-aac2_2.0.1-1_ar wget http://ftp.debian.org/debian/pool/non-free/f/fdk-aac/libfdk-aac-dev_2.0.1-1_armhf.deb -O ~/libfdk-aac-dev_2.0.1-1_armhf.deb || error "Failed to download libfdk-aac-dev_2.0.1-1_armhf.deb" wget https://github.com/techcoder20/RPIObsInstaller/blob/main/obs_armhf.deb?raw=true -O ~/obs_armhf.deb || error "Failed to download obs_armhf.deb" +#remove obs-studio package first +if dpkg -l obs-studio &>/dev/null ;then + echo "Removing obs-studio package first..." + sudo apt purge -y obs-studio +fi + #Install all debs. Local dependencies, obs_armhf.deb, normal dependencies, and libxcb* "${DIRECTORY}/pkg-install" "$HOME/obs_armhf.deb $HOME/libfdk-aac2_2.0.1-1_armhf.deb $HOME/libfdk-aac-dev_2.0.1-1_armhf.deb libmbedtls-dev libasound2-dev libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libcurl4-openssl-dev libfontconfig1-dev libfreetype6-dev libgl1-mesa-dev libjack-jackd2-dev libjansson-dev libluajit-5.1-dev libpulse-dev libqt5x11extras5-dev libspeexdsp-dev libswresample-dev libswscale-dev libudev-dev libv4l-dev libvlc-dev libx11-dev libx11-xcb1 libx11-xcb-dev libxcb-xinput0 libxcb-xinput-dev libxcb-randr0 libxcb-randr0-dev libxcb-xfixes0 libxcb-xfixes0-dev libx264-dev libxcb-shm0-dev libxcb-xinerama0-dev libxcomposite-dev libxinerama-dev pkg-config python3-dev qtbase5-dev libqt5svg5-dev swig libxcb* " "$(dirname "$0")" || exit 1 diff --git a/apps/OBS Studio/install-64 b/apps/OBS Studio/install-64 index c61f985..7804556 100755 --- a/apps/OBS Studio/install-64 +++ b/apps/OBS Studio/install-64 @@ -15,6 +15,12 @@ wget http://ftp.debian.org/debian/pool/non-free/f/fdk-aac/libfdk-aac2_2.0.1-1_ar wget http://ftp.debian.org/debian/pool/non-free/f/fdk-aac/libfdk-aac-dev_2.0.1-1_arm64.deb -O ~/libfdk-aac-dev_2.0.1-1_arm64.deb || error "Failed to download libfdk-aac-dev_2.0.1-1_arm64.deb" wget https://github.com/techcoder20/RPIObsInstaller/blob/main/obs_arm64.deb?raw=true -O ~/obs_arm64.deb || error "Failed to download obs_arm64.deb" +#remove obs-studio package first +if dpkg -l obs-studio &>/dev/null ;then + echo "Removing obs-studio package first..." + sudo apt purge -y obs-studio +fi + #Install all debs. Local dependencies, obs_armhf.deb, normal dependencies, and libxcb* "${DIRECTORY}/pkg-install" "$HOME/obs_arm64.deb $HOME/libfdk-aac2_2.0.1-1_arm64.deb $HOME/libfdk-aac-dev_2.0.1-1_arm64.deb libmbedtls-dev libasound2-dev libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libcurl4-openssl-dev libfontconfig1-dev libfreetype6-dev libgl1-mesa-dev libjack-jackd2-dev libjansson-dev libluajit-5.1-dev libpulse-dev libqt5x11extras5-dev libspeexdsp-dev libswresample-dev libswscale-dev libudev-dev libv4l-dev libvlc-dev libx11-dev libx11-xcb1 libx11-xcb-dev libxcb-xinput0 libxcb-xinput-dev libxcb-randr0 libxcb-randr0-dev libxcb-xfixes0 libxcb-xfixes0-dev libx264-dev libxcb-shm0-dev libxcb-xinerama0-dev libxcomposite-dev libxinerama-dev pkg-config python3-dev qtbase5-dev libqt5svg5-dev swig libxcb* " "$(dirname "$0")" || exit 1