Forked from MatthewKosloski/extract-apps-spotify-directory.txt
Last active
November 14, 2018 14:12
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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