Casks/s/spotify.rb
cask "spotify" do
arch arm: "ARM64"
version "1.2.45.454"
sha256 :no_check
url "https://download.scdn.co/Spotify#{arch}.dmg",
verified: "download.scdn.co/"
name "Spotify"
desc "Music streaming service"
homepage "https://www.spotify.com/"
livecheck do
url :url
strategy :extract_plist
end
auto_updates true
depends_on macos: ">= :big_sur"
app "Spotify.app"
uninstall launchctl: [
"*.spotify.client.*",
"com.spotify.client.startuphelper",
"com.spotify.webhelper",
],
quit: "com.spotify.client"
zap trash: [
"~/Library/Application Support/Spotify",
"~/Library/Caches/com.spotify.client",
"~/Library/Caches/com.spotify.client.helper",
"~/Library/Cookies/com.spotify.client.binarycookies",
"~/Library/HTTPStorages/com.spotify.client",
"~/Library/Logs/Spotify",
"~/Library/Preferences/com.spotify.client.helper.plist",
"~/Library/Preferences/com.spotify.client.plist",
"~/Library/Saved Application State/com.spotify.client.savedState",
]
end