cask "spyder" do arch arm: "arm64", intel: "x86_64" version "6.0.7" sha256 arm: "d3ad8563dadc1bcf723b3c199e8f87b54724a3f38ce300f3069be2b4e4fd1489", intel: "cc69044cd60b56917523d0bee7313e828a894b8f7fa413bcfe6d1d5eefa690c1" url "https://github.com/spyder-ide/spyder/releases/download/v#{version}/Spyder-macOS-#{arch}.pkg", verified: "github.com/spyder-ide/spyder/" name "Spyder" desc "Scientific Python IDE" homepage "https://www.spyder-ide.org/" livecheck do url :url strategy :github_latest end depends_on macos: ">= :big_sur" pkg "Spyder-macOS-#{arch}.pkg" uninstall quit: "org.spyder-ide.Spyder-#{version.major}", pkgutil: "org.spyder-ide.Spyder.pkg*", delete: [ "/Applications/REQUIRED.app", "/Applications/Spyder #{version.major}.app", ] zap trash: [ "~/.spyder-py3", "~/Library/Application Support/Spyder", "~/Library/Caches/Spyder", "~/Library/Saved Application State/org.spyder-ide.Spyder.savedState", ] end