cask "anaconda" do arch arm: "arm64", intel: "x86_64" version "2024.10-1" sha256 arm: "f64ed797ce23ae1d07ead949bfb6ff630b9fa8269ca8aef8ea2efa82172ece47", intel: "ad3eea1cc969e9dfd4d571fc266aae06ec119f651d7cb19c0dc187b73e2bfab1" url "https://repo.anaconda.com/archive/Anaconda3-#{version}-MacOSX-#{arch}.sh" name "Anaconda Distribution" desc "Distribution of the Python and R programming languages for scientific computing" homepage "https://www.anaconda.com/" livecheck do url "https://repo.anaconda.com/archive/" regex(/Anaconda3-(\d+(?:\.\d+)+[._-]*\d+)-MacOSX-#{arch}\.sh/i) end auto_updates true container type: :naked installer script: { executable: "Anaconda3-#{version}-MacOSX-#{arch}.sh", args: ["-b", "-p", "#{HOMEBREW_PREFIX}/anaconda3"], sudo: true, } postflight do set_ownership "#{HOMEBREW_PREFIX}/anaconda3" end uninstall delete: [ "#{HOMEBREW_PREFIX}/anaconda3", "/Applications/Anaconda-Navigator.app", ] zap trash: [ "~/.anaconda", "~/.conda", "~/.condarc", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.continuum.io.sfl*", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.continuum.python.sfl*", ] caveats do files_in_usr_local end end