cask 'intellij-idea-ce' do version '2017.1.3,171.4424.56' sha256 'a81f3b4b2e3062dac9e6f78e7a645d455f8c3eaadfd6570d04caf27dfed316fa' url "https://download.jetbrains.com/idea/ideaIC-#{version.before_comma}.dmg" appcast 'https://data.services.jetbrains.com/products/releases?code=IIC&latest=true&type=release', checkpoint: '051ca0578b7952fce4217ffd6f4d0662e8962d63eb73c4a805f5c36e3fcd47b0' name 'IntelliJ IDEA Community Edition' name 'IntelliJ IDEA CE' homepage 'https://www.jetbrains.com/idea/' auto_updates true app 'IntelliJ IDEA CE.app' uninstall_postflight do ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'idea') }.each { |path| File.delete(path) if File.exist?(path) } end zap delete: [ "~/Library/Application Support/IdeaIC#{version.major_minor}", "~/Library/Preferences/IdeaIC#{version.major_minor}", "~/Library/Caches/IdeaIC#{version.major_minor}", "~/Library/Logs/IdeaIC#{version.major_minor}", '~/Library/Preferences/com.jetbrains.intellij.ce.plist', '~/Library/Saved Application State/com.jetbrains.intellij.ce.savedState', ] end