cask 'amazon-music' do version '20170404,0512355017' sha256 '5542cd8533b5ad82047924094b3c547e431b8fda48cb596403bf03b468810a27' # 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" name 'Amazon Music' homepage 'https://www.amazon.com/gp/feature.html/?ie=UTF8&docId=1001067901' installer script: { executable: 'Amazon Music Installer.app/Contents/MacOS/osx-intel', args: ['--unattendedmodeui', 'none'], sudo: true, } 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 won't 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