cask 'chatty' do version '0.10' sha256 '905e876269cd38b46be030d408319a0dbeb1fd71989822aed11c14d11f4e71f8' # github.com/chatty/chatty was verified as official when first introduced to the cask url "https://github.com/chatty/chatty/releases/download/v#{version}/Chatty_#{version}.zip" appcast 'https://github.com/chatty/chatty/releases.atom' name 'Chatty' homepage 'https://chatty.github.io/' suite 'Chatty' preflight do # There is no sub-folder in the ZIP; the root *is* the folder FileUtils.mv(staged_path.children, staged_path.join('Chatty').tap(&:mkpath)) end zap trash: '~/.chatty' caveats do depends_on_java '7+' end end