homebrew-cask/Casks/amazon-music.rb

51 lines
1.6 KiB
Ruby

cask "amazon-music" do
version "8.8.2.2305,23051118_02624dcfac75462d853bb932c93b00fc"
sha256 "a2ac4cfcdb8d5d043a7e7aaf56528ba06e0d8bd698aa66fa7428ce3c70151925"
url "https://d2j9xt6n9dg5d3.cloudfront.net/mac/#{version.after_comma}/Amazon+Music+Installer.dmg",
verified: "d2j9xt6n9dg5d3.cloudfront.net/mac/"
name "Amazon Music"
desc "Desktop client for Amazon Music"
homepage "https://www.amazon.com/musicapps"
livecheck do
# The download page does not provide a version number
# The version number of the artifact corresponds with the installer, not the application
skip "No version information available"
end
auto_updates true
installer script: {
executable: "Amazon Music Installer.app/Contents/MacOS/installbuilder.sh",
}
uninstall quit: [
"com.amazon.music",
"com.amazon.music-renderer",
],
delete: "/Applications/Amazon Music.app",
launchctl: [
"com.amazon.music",
"com.amazon.music.startup",
]
zap trash: [
"~/Library/Application Support/Amazon Music",
"~/Library/LaunchAgents/com.amazon.music.plist",
"~/Library/LaunchAgents/com.amazon.music.startup.plist",
"~/Library/Preferences/com.amazon.music-renderer.plist",
"~/Library/Preferences/com.amazon.music.plist",
"~/Library/Saved Application State/com.amazon.music.savedState",
]
caveats <<~EOS
If the app will not launch after installation, try
brew uninstall --zap --cask #{token}
brew install --cask #{token}
then re-launch the app.
EOS
end