Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / m / miniconda.rb
blob4c0ac2782096ba2c99cf6982cfc0289c28c63f80
1 cask "miniconda" do
2   arch arm: "arm64", intel: "x86_64"
4   version "py312_24.9.2-0"
5   sha256 arm:   "08d8a82ed21d2dae707554d540b172fe03327347db747644fbb33abfaf07fddd",
6          intel: "ce3b440c32c9c636bbe529477fd496798c35b96d9db1838e3df6b0a80714da4e"
8   url "https://repo.anaconda.com/miniconda/Miniconda3-#{version}-MacOSX-#{arch}.sh",
9       verified: "repo.anaconda.com/miniconda/"
10   name "Miniconda"
11   desc "Minimal installer for conda"
12   homepage "https://docs.conda.io/en/latest/miniconda.html"
14   livecheck do
15     url "https://repo.anaconda.com/miniconda/"
16     strategy :page_match do |page|
17       sha256 = page.scan(/>Miniconda3-latest-MacOSX-#{arch}\.sh<.{,99}>(\w{64})</im).first.first
18       page.scan(/>Miniconda3-(py\d+_[\d.-]+)-MacOSX-#{arch}\.sh<.{,99}>#{sha256}</im).first.first
19     end
20   end
22   auto_updates true
23   conflicts_with cask: [
24     "mambaforge",
25     "miniforge",
26   ]
27   container type: :naked
29   installer script: {
30     executable: "Miniconda3-#{version}-MacOSX-#{arch}.sh",
31     args:       ["-b", "-p", "#{caskroom_path}/base"],
32   }
33   binary "#{caskroom_path}/base/condabin/conda"
35   uninstall delete: "#{caskroom_path}/base"
37   zap trash: [
38     "~/.conda",
39     "~/.condarc",
40     "~/.continuum",
41   ]
43   caveats <<~EOS
44     Please run the following to setup your shell:
45       conda init "$(basename "${SHELL}")"
47     Alternatively, manually add the following to your shell init:
48       eval "$(conda "shell.$(basename "${SHELL}")" hook)"
49   EOS
50 end