Skip to content

Instantly share code, notes, and snippets.

@MatthewKosloski
Last active November 26, 2020 01:01
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MatthewKosloski/d542c645b9942e2d690639bd13aa6ce6 to your computer and use it in GitHub Desktop.
Save MatthewKosloski/d542c645b9942e2d690639bd13aa6ce6 to your computer and use it in GitHub Desktop.
Repacks the Spotify modules
/*
Repacks the Spotify modules
It converts your folder into a .spa file. (e.g., profile -> profile.spa)
All module folders will be deleted after running this.
As a result, the root directory will only contain .spa files. (ready to be placed into Spotify's contents)
To run, simply `cd` into the root Apps folder of your skin.
Then, take said folder and replace it with Spotify's Apps directory found at `/Applications/Spotify.app/Contents/Resources/Apps`
Procedure:
1. Repack all modules
2. Delete all folders
*/
tar -cvf about.spa . && tar -cvf ad.spa . && tar -cvf album.spa . && tar -cvf artist-chart.spa . && tar -cvf artist.spa . && tar -cvf browse.spa . && tar -cvf buddy-list.spa . && tar -cvf chart.spa . && tar -cvf collection-album.spa . && tar -cvf collection-artist.spa . && tar -cvf collection-songs.spa . && tar -cvf collection.spa . && tar -cvf concerts.spa . && tar -cvf creator-about.spa . && tar -cvf discover.spa . && tar -cvf error.spa . && tar -cvf feedback.spa . && tar -cvf findfriends.spa . && tar -cvf full-screen-modal.spa . && tar -cvf genre.spa . && tar -cvf glue-resources.spa . && tar -cvf hub.spa . && tar -cvf licenses.spa . && tar -cvf lyrics.spa . && tar -cvf messages.spa . && tar -cvf notification-center.spa . && tar -cvf people.spa . && tar -cvf playlist-desktop.spa . && tar -cvf playlist-folder.spa . && tar -cvf profile.spa . && tar -cvf radio-hub.spa . && tar -cvf search.spa . && tar -cvf settings.spa . && tar -cvf share.spa . && tar -cvf social-feed.spa . && tar -cvf station.spa . && tar -cvf stations.spa . && tar -cvf suggest.spa . && tar -cvf zlink-queue.spa . && tar -cvf zlink.spa . && tar -cvf zlogin.spa . && rm -rf about ad album artist-chart artist browse buddy-list chart collection-album collection-artist collection-songs collection concerts creator-about discover error feedback findfriends full-screen-modal genre glue-resources hub licenses lyrics messages notification-center people playlist-desktop playlist-folder profile radio-hub search settings share social-feed station stations suggest zlink-queue zlink zlogin
@nthndsjrdns
Copy link

Hey there.
I know that this command is 4 years old now and could be really outdated but I was wondering if anyone could help me out. I entered the command but altered it to properly match the new .spa files in the Spotify directory. However, when I run it, the spa files all end up being over a gigabyte in size each which results in a write error when my disk runs out of space. Could anyone help me to figure out why the resulting .spa files are so large after the compression? The folders that are being compressed are pretty small; only about 3 MB each. I'm pretty new to this kind of stuff if you couldn't tell haha.
Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment