40 lines
1.3 KiB
Ruby
40 lines
1.3 KiB
Ruby
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"
|
|
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',
|
|
]
|
|
|
|
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
|