Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save noohgnas/0632a6e7dda4e9e3dad413f0fe08055d to your computer and use it in GitHub Desktop.

Select an option

Save noohgnas/0632a6e7dda4e9e3dad413f0fe08055d to your computer and use it in GitHub Desktop.
Extracts each .spa file in Spotify's Apps directory without manually doing it yourself.
#!/bin/bash
# Apps locations:
# macOS - /Applications/Spotify.app/Contents/Resources/Apps
# Windows - C:\Users\lsh\AppData\Roaming\Spotify\Apps
MODULES=`ls *.spa`
for m_file in $MODULES
do
if [ -f $m_file ]; then
m_name=`basename $m_file .spa`
mkdir -p extract/$m_name
cp -f $m_file extract/$m_name
pushd extract/$m_name > /dev/null 2>&1
unzip -q $m_file && echo "$m_file extracted"
popd > /dev/null 2>&1
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment