forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamazon-music.rb
41 lines (33 loc) · 1.44 KB
/
amazon-music.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
cask 'amazon-music' do
version '7.8.3,20190926:081652a3d0'
sha256 '1c98a8b40e7aad8eff0f0152e4af36ba7e8ad70e8f7611dbfa84deccdb396787'
# 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.after_comma.before_colon}/#{version.after_colon}/AmazonMusicInstaller.dmg"
appcast 'https://www.amazon.com/gp/dmusic/desktop/downloadPlayer',
configuration: "#{version.after_comma.before_colon}/#{version.after_colon}"
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