42 lines
1.4 KiB
Ruby
42 lines
1.4 KiB
Ruby
cask 'amazon-music' do
|
|
version '7.10.1.2195,2003272195'
|
|
sha256 'a7a9e303646f1cb85b5bbb4fc19be91d1b817aa5e0c3270eab9546b5182774d7'
|
|
|
|
# morpho-releases.s3-us-west-2.amazonaws.com/mac/ was verified as official when first introduced to the cask
|
|
url "https://morpho-releases.s3-us-west-2.amazonaws.com/mac/#{version.after_comma}/AmazonMusicInstaller.dmg"
|
|
appcast 'https://www.amazon.com/gp/dmusic/desktop/downloadPlayer',
|
|
configuration: version.after_comma
|
|
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
|