You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.4 KiB

MP="`dirname \"$0\"`" # relative
MP="`( cd \"$MP\" && pwd )`" # absolutized and normalized
cd $MP
sudo apt install -y lame build-essential libffi-dev jq curl
wget -q -O - | sudo apt-key add - #add mopidy's libspotify repository
sudo wget -q -O /etc/apt/sources.list.d/mopidy.list #valid for Debian Stretch.
sudo apt update && sudo apt install libspotify12 libspotify-dev #install libspotify from mopidy's repository
if [[ ! $(which pyenv) ]]; then
echo "pyenv installation..."
curl -L | bash
echo "export PYENV_ROOT=\"$HOME/.pyenv\"" >> $HOME/.bashrc
echo "command -v pyenv >/dev/null || export PATH=\"$PYENV_ROOT/bin:$PATH\"" >> $HOME/.bashrc
echo "eval \"$(pyenv init -)\"" >> $HOME/.bashrc
echo "Restat terminal and relaunch this install script"
exit 0
if [[ ! $(which python) ]]; then
pyenv install 3.9.6
pyenv global 3.9.6
echo "Restat terminal and relaunch this install script again"
exit 0
mkdir -p lib
[[ ! -f .env ]] && cp .env.template .env && chmod 600 .env
git clone lib/spotify-ripper && cd lib/spotify-ripper && sudo python install
pyenv rehash
## Source: