My brain cells hurt

This commit is contained in:
Sir RaptaG 2023-06-05 13:43:27 +03:00 committed by GitHub
parent f149f19284
commit 0006ee3a3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,9 +35,9 @@ function command_exists() {
} }
function install_deps(){ function install_deps(){
local debianDeps='tar mpv libappindicator3-1 gir1.2-appindicator3-0.1 libsecret-1-0 libnotify-bin libjsoncpp25' local debianDeps='mpv libappindicator3-1 gir1.2-appindicator3-0.1 libsecret-1-0 libnotify-bin libjsoncpp25'
local rpmDeps='tar mpv libappindicator jsoncpp libsecret libnotify' local rpmDeps='mpv libappindicator jsoncpp libsecret libnotify'
local archDeps='tar mpv libappindicator-gtk3 libsecret jsoncpp libnotify' local archDeps='mpv libappindicator-gtk3 libsecret jsoncpp libnotify'
if command_exists apt; then if command_exists apt; then
apt install -y ${debianDeps} apt install -y ${debianDeps}
@ -50,14 +50,11 @@ function install_deps(){
elif command_exists pacman; then elif command_exists pacman; then
pacman -Sy ${archDeps} pacman -Sy ${archDeps}
else else
# TODO - install them # 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-*
# 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"
fi fi
} }