cask 'clion' do version '2017.1.3,171.4694.31' sha256 '6bd9ab6328b31b4ddb6691b143159219e45deae656a09f522a2b760045e66667' url "https://download.jetbrains.com/cpp/CLion-#{version.before_comma}.dmg" appcast 'https://data.services.jetbrains.com/products/releases?code=CL&latest=true&type=release', checkpoint: '8140311ffeba57223d9b54d437111cef84945011dc5606e3d099bce2bfc5bace' name 'CLion' homepage 'https://www.jetbrains.com/clion/' auto_updates true app 'CLion.app' uninstall_postflight do ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'clion') }.each { |path| File.delete(path) if File.exist?(path) } end zap delete: [ "~/Library/Preferences/CLion#{version.major_minor}", "~/Library/Application Support/CLion#{version.major_minor}", "~/Library/Caches/CLion#{version.major_minor}", "~/Library/Logs/CLion#{version.major_minor}", ] end