homebrew-cask/Casks/amazon-music.rb

40 lines
1.3 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'amazon-music' do
version '20181015,191833e156'
sha256 '37bb5852afad110f37cbd6799ebf963784929257cdd8cca56c4d5bd8cc682376'
# 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"
2015-01-04 11:01:36 +08:00
name 'Amazon Music'
homepage 'https://www.amazon.com/musicapps'
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',
]
2017-11-18 17:35:03 +08:00
zap trash: [
'~/Library/Preferences/com.amazon.music.plist',
'~/Library/Application Support/Amazon Music',
2017-11-18 17:35:03 +08:00
]
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