39 lines
1.3 KiB
Ruby
39 lines
1.3 KiB
Ruby
cask 'amazon-music' do
|
|
version '20180223,0156134c39'
|
|
sha256 '939a8104c18eefbaaee4d1acaea5d71f276aead3ec771d7a1f7d60617dedf22c'
|
|
|
|
# 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',
|
|
'com.amazon.music.startup',
|
|
]
|
|
|
|
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
|