24 lines
879 B
Bash
24 lines
879 B
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
|