cask "knime" do arch arm: "aarch64", intel: "x86_64" version "5.3.3" sha256 arm: "8928c663a684a06416a068909fce6d76e063f2ae1042e9444c6901a744e53b47", intel: "ca45fc65542122dcdbf3e617d675ce408135f1541b01bfc558c1cb8e2828b6b3" url "https://download.knime.org/analytics-platform/macosx/knime_#{version}.app.macosx.cocoa.#{arch}.dmg", verified: "download.knime.org/analytics-platform/macosx/" name "KNIME Analytics Platform" desc "Software to create and productionise data science" homepage "https://www.knime.com/" livecheck do url "https://download.knime.org/analytics-platform/macosx/knime-latest-app.macosx.cocoa.#{arch}.dmg" regex(/knime[._-]v?(\d+(?:\.\d+)+).*?\.dmg/i) strategy :header_match end depends_on macos: ">= :high_sierra" app "KNIME #{version}.app" zap trash: [ "~/Library/Caches/org.knime.product", "~/Library/Preferences/org.knime.product.plist", "~/Library/Saved Application State/org.knime.product.savedState", ] end