homebrew-cask/Casks/amazon-music.rb

51 lines
1.6 KiB
Ruby

cask "amazon-music" do
version "9.4.2,24180302_e1b342c417888b01d20db472a074b408"
sha256 "b39070995ea4aac909efb394740b722d53c848e66b9aa5817b249bbc31ba4f62"
url "https://d2j9xt6n9dg5d3.cloudfront.net/mac/#{version.csv.second}/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