25 lines
932 B
Bash
Executable File
25 lines
932 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ ! $(which python) ]]; then
|
|
if [[ ! $(which pyenv) ]]; then
|
|
echo "pyenv installation..."
|
|
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
|
|
echo "Restat terminal and relaunch this install script"
|
|
exit 0
|
|
fi
|
|
|
|
pyenv install 3.9.6
|
|
pyenv global 3.9.6
|
|
fi
|
|
|
|
sudo apt install lame build-essential libffi-dev
|
|
wget -q -O - https://apt.mopidy.com/mopidy.gpg | sudo apt-key add - #add mopidy's libspotify repository
|
|
sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/stretch.list #valid for Debian Stretch.
|
|
sudo apt update && sudo apt install libspotify12 libspotify-dev python-spotify #install libspotify from mopidy's repository
|
|
mkdir -p lib
|
|
cp .login.auth.template .login.auth
|
|
chmod 600 .login.auth
|
|
|
|
git clone https://github.com/lavolp3/spotify-ripper.git lib/spotify-ripper && cd lib/spotify-ripper && python setup.py install
|
|
pyenv rehash
|