This repository has been archived on 2022-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
manjaroConfiguration/installSpotify.sh
2021-11-08 18:45:21 +01:00

25 lines
1 KiB
Bash

# On s'assure que les versions Snap et flatpak soient désinstallés
sudo snap remove spotify 2> /dev/null
sudo flatpak uninstall com.spotify.Client 2> /dev/null
# On installe la version depuis le site officiel
sudo apt update
sudo apt install curl -y
curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | sudo apt-key add -
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt update
sudo apt install spotify-client -y
# On installe les préquis pour build et installé le patch
sudo apt install git make build-essential -y
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
# On télécharge et build le patch
git clone https://github.com/abba23/spotify-adblock.git
cd spotify-adblock
make
# On installe le patch
sudo make install
# On supprime le dossier
cd ..
rm -rf spotify-adblock
# On remplace le raccourci Ubuntu
sudo sed -i "7s#.*#Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U#" /usr/share/applications/spotify.desktop