From ce5db53dabe563ef47c069e354a204e4337317c4 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 8 Nov 2021 18:30:48 +0100 Subject: [PATCH] Add script to autoinstall and patch Spotify without ads --- installSpotify.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 installSpotify.sh 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