cask 'colorsnapper' do
  version '1.1.3'
  sha256 'b31c2926a702f350e826fa26ab8617da3418809114fb3691439a061595b0873a'

  # amazonaws.com/cs2-binaries was verified as official when first introduced to the cask
  url "https://s3.amazonaws.com/cs2-binaries/ColorSnapper2-#{version.dots_to_underscores}.zip"
  appcast 'http://colorsnapper.com/app/appcast.xml',
          checkpoint: '189b0b3b11a3116495c11cc64d59d78e6c5fa1cc8ed7645bb3551296f3a5476b'
  name 'ColorSnapper 2'
  homepage 'https://colorsnapper.com/'

  app 'ColorSnapper2.app'

  uninstall quit: 'com.koolesache.ColorSnapper2'

  zap delete: [
                '~/Library/Application Support/ColorSnapper2',
                '~/Library/Caches/com.koolesache.ColorSnapper2',
                '~/Library/Preferences/com.koolesache.ColorSnapper2.plist',
              ]
end
