2015-12-18 09:15:28 +08:00
|
|
|
cask 'amazon-music' do
|
2018-10-18 04:17:06 +08:00
|
|
|
version '20181015,191833e156'
|
|
|
|
sha256 '37bb5852afad110f37cbd6799ebf963784929257cdd8cca56c4d5bd8cc682376'
|
2014-06-27 08:00:56 +08:00
|
|
|
|
2017-11-20 18:36:29 +08:00
|
|
|
# ssl-images-amazon.com/images was verified as official when first introduced to the cask
|
2016-02-17 11:14:02 +08:00
|
|
|
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'
|
2017-11-20 18:36:29 +08:00
|
|
|
homepage 'https://www.amazon.com/musicapps'
|
2014-06-27 08:00:56 +08:00
|
|
|
|
2018-05-02 17:30:17 +08:00
|
|
|
auto_updates true
|
|
|
|
|
2017-04-11 01:35:40 +08:00
|
|
|
installer script: {
|
2018-09-21 10:40:36 +08:00
|
|
|
executable: 'Amazon Music Installer.app/Contents/MacOS/installbuilder.sh',
|
2017-04-11 01:35:40 +08:00
|
|
|
}
|
2015-03-29 03:20:36 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
uninstall quit: [
|
|
|
|
'com.amazon.music',
|
|
|
|
'com.amazon.music-renderer',
|
|
|
|
],
|
2018-02-17 14:19:37 +08:00
|
|
|
delete: '/Applications/Amazon Music.app',
|
|
|
|
launchctl: [
|
|
|
|
'com.amazon.music',
|
|
|
|
'com.amazon.music.startup',
|
|
|
|
]
|
2015-11-16 23:43:32 +08:00
|
|
|
|
2017-11-18 17:35:03 +08:00
|
|
|
zap trash: [
|
|
|
|
'~/Library/Preferences/com.amazon.music.plist',
|
2017-11-20 18:36:29 +08:00
|
|
|
'~/Library/Application Support/Amazon Music',
|
2017-11-18 17:35:03 +08:00
|
|
|
]
|
2015-12-24 04:50:23 +08:00
|
|
|
|
2017-10-22 23:36:29 +08:00
|
|
|
caveats <<~EOS
|
2017-06-11 08:41:44 +08:00
|
|
|
If the app will not launch after installation, try
|
2015-12-24 04:50:23 +08:00
|
|
|
|
|
|
|
brew cask zap #{token}
|
|
|
|
brew cask install #{token}
|
|
|
|
|
2017-11-20 18:36:29 +08:00
|
|
|
then re-launch the app.
|
2015-12-24 04:50:23 +08:00
|
|
|
EOS
|
2014-06-13 22:44:47 +08:00
|
|
|
end
|