use our dedicated rust script installation and remove spotify banner

This commit is contained in:
Mylloon 2021-12-28 17:12:17 +01:00
parent 90c371e079
commit c54ae41aa6
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -11,7 +11,7 @@ echo -e "\nSpotify installed!"
# We install the prerequisites to build and install the patch (Git and Rust will be installed and not removed)
sudo apt install git make build-essential -y
which rustc &> /dev/null || curl https://sh.rustup.rs -sSf | ( sh -s -- -y; source $HOME/.cargo/env ) # install rust if not already installed
which rustc &> /dev/null || wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installRust.sh -O - | ( bash; source $HOME/.cargo/env ) # install rust if not already installed
# Download and build the patch
git clone https://github.com/abba23/spotify-adblock.git
@ -30,4 +30,7 @@ if [ -f /usr/share/applications/spotify.desktop ] ; then
sudo sed -i "7s#.*#Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U#" /usr/share/applications/spotify.desktop
fi
# Remove banner
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/removeBannerSpotify.sh -O - | bash
echo -e "\nSpotify patched! 🎉"