diff --git a/installSpotify.sh b/installSpotify.sh new file mode 100644 index 0000000..876dc45 --- /dev/null +++ b/installSpotify.sh @@ -0,0 +1,23 @@ +# 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