homebrew-cask/Casks/amazon-music.rb

38 lines
1.3 KiB
Ruby

cask 'amazon-music' do
version '20171114,013802f6c8'
sha256 '34e8b9cf0b822e6a26e617369fda3516302b1bdcd0baa9fa19180aa00e8982c5'
# ssl-images-amazon.com/images was verified as official when first introduced to the cask
url "https://images-na.ssl-images-amazon.com/images/G/01/digital/music/morpho/installers/#{version.before_comma}/#{version.after_comma}/AmazonMusicInstaller.dmg"
name 'Amazon Music'
homepage 'https://www.amazon.com/musicapps'
installer script: {
executable: 'Amazon Music Installer.app/Contents/MacOS/osx-intel',
args: ['--unattendedmodeui', 'none'],
}
uninstall quit: [
'com.amazon.music',
'com.amazon.music-renderer',
],
delete: [
'/Applications/Amazon Music.app',
],
launchctl: 'com.amazon.music'
zap trash: [
'~/Library/Preferences/com.amazon.music.plist',
'~/Library/Application Support/Amazon Music',
]
caveats <<~EOS
If the app will not launch after installation, try
brew cask zap #{token}
brew cask install #{token}
then re-launch the app.
EOS
end