Add script to autoinstall and patch Spotify without ads
This commit is contained in:
parent
7a1f4ccb31
commit
ce5db53dab
1 changed files with 23 additions and 0 deletions
23
installSpotify.sh
Normal file
23
installSpotify.sh
Normal file
|
@ -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
|
Reference in a new issue