homebrew-cask/Casks/amazon-music.rb

39 lines
1.4 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'amazon-music' do
version '20170919,0755280cb0'
sha256 'd73ebffa49894357b4f11e185db111bc8a746dc2986882c554c9644273b1f61a'
# ssl-images-amazon.com 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'
2017-04-27 04:25:58 +08:00
homepage 'https://www.amazon.com/b/ref=topnav_storetab_dmusic?node=14981443011'
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'
zap delete: [
'~/Library/Preferences/com.amazon.music.plist',
'~/Library/Application Support/Amazon Music/',
]
caveats <<-EOS.undent
If the app will not launch after installation, try
brew cask zap #{token}
brew cask install #{token}
then re-launch the app. You can read more about the issue on Amazon's customer forums
http://www.amazon.com/App-wont-open-OS-Yosemite/forum/FxZLHSK3AW6KZU/Tx1EJYW65OQ5TZS
EOS
end