From 0006ee3a3d1f426120a3d3c92783422970b01e7a Mon Sep 17 00:00:00 2001 From: Sir RaptaG <77157639+RaptaG@users.noreply.github.com> Date: Mon, 5 Jun 2023 13:43:27 +0300 Subject: [PATCH] My brain cells hurt --- scripts/install.sh | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 0b26f9d6..8eb0ce89 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -35,9 +35,9 @@ function command_exists() { } function install_deps(){ - local debianDeps='tar mpv libappindicator3-1 gir1.2-appindicator3-0.1 libsecret-1-0 libnotify-bin libjsoncpp25' - local rpmDeps='tar mpv libappindicator jsoncpp libsecret libnotify' - local archDeps='tar mpv libappindicator-gtk3 libsecret jsoncpp libnotify' + local debianDeps='mpv libappindicator3-1 gir1.2-appindicator3-0.1 libsecret-1-0 libnotify-bin libjsoncpp25' + local rpmDeps='mpv libappindicator jsoncpp libsecret libnotify' + local archDeps='mpv libappindicator-gtk3 libsecret jsoncpp libnotify' if command_exists apt; then apt install -y ${debianDeps} @@ -49,15 +49,12 @@ function install_deps(){ zypper install -y ${rpmDeps} elif command_exists pacman; then pacman -Sy ${archDeps} - else - # TODO - install them - - # TAR - # wget -q https://ftp.gnu.org/gnu/tar/tar-latest.tar.gz - - - # echo "Your package manager is not supported by this script. Please install the dependencies manually." - # echo "The dependencies are: curl, tar, mpv, appindicator, libsecret, jsoncpp, libnotify" + else + # Deps + # JsonCpp + wget https://github.com/open-source-parsers/jsoncpp/tarball/master -O jsoncpp.tar.gz + tar -xf jsoncpp.tar.gz && cd open-source-parsers-jsoncpp-* + fi }