From b59981be1b6c8eae68e48351e57727822d1e9f3c Mon Sep 17 00:00:00 2001 From: Jai-JAP <78354625+Jai-JAP@users.noreply.github.com> Date: Tue, 18 May 2021 20:28:07 +0530 Subject: [PATCH] Update install-64 --- apps/Zoom/install-64 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/Zoom/install-64 b/apps/Zoom/install-64 index a327fa0..697e74e 100644 --- a/apps/Zoom/install-64 +++ b/apps/Zoom/install-64 @@ -10,8 +10,14 @@ function error { cd $HOME # Get dependencies -cd $HOME -"${DIRECTORY}/pkg-install" "cmake:armhf pulseaudio-utils:armhf pulseaudio:armhf libxcb-shape0:armhf libxcb-randr0:armhf libxcb-image:armhf libxcb-image0:armhf libxcb-xtest0:armhf libxcb-keysyms1:armhf libxcb-xfixes0:armhf libturbojpeg0:armhf libdbus-1-3:armhf" "$(dirname "$0")" || exit 1 +DISTRO=$(lsb_release -is) +if [[ "${DISTRO}" == "Debian" || "${DISTRO}" == "Raspbian" ]]; then + "${DIRECTORY}/pkg-install" "pulseaudio-utils:armhf pulseaudio:armhf libxcb-shape0:armhf libxcb-randr0:armhf libxcb-image0:armhf libxcb-xtest0:armhf libxcb-keysyms1:armhf libxcb-xfixes0:armhf libturbojpeg0:armhf libdbus-1-3:armhf" "$(dirname "$0")" || exit 1 +elif [[ "${DISTRO}" == "Ubuntu" ]]; then + "${DIRECTORY}/pkg-install" "pulseaudio-utils:armhf pulseaudio:armhf libxcb-shape0:armhf libxcb-randr0:armhf libxcb-image0:armhf libxcb-xtest0:armhf libxcb-keysyms1:armhf libxcb-xfixes0:armhf libturbojpeg:armhf libdbus-1-3:armhf" "$(dirname "$0")" || exit 1 +else + error "This script can't run on your OS! It HAS to be Debian or Ubuntu" +fi #refresh list of libraries sudo ldconfig