/
miniforge.rb
40 lines (32 loc) 路 1.06 KB
/
miniforge.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
cask "miniforge" do
arch arm: "arm64", intel: "x86_64"
version "23.3.1-0"
sha256 arm: "32632039d6f457e56589591bd893f62cba85e31379ec8b663f8b06f35b0860e7",
intel: "e9447f308499d99821c48293fe258bb47595f238140cd9c834f57321d3839cd0"
url "https://github.com/conda-forge/miniforge/releases/download/#{version}/Miniforge3-#{version}-MacOSX-#{arch}.sh"
name "miniforge"
desc "Minimal installer for conda specific to conda-forge"
homepage "https://github.com/conda-forge/miniforge"
livecheck do
url :homepage
regex(/v?(\d+(?:[.-]\d+)+)/i)
strategy :github_latest
end
auto_updates true
conflicts_with cask: "miniconda"
container type: :naked
installer script: {
executable: "Miniforge3-#{version}-MacOSX-#{arch}.sh",
args: ["-b", "-p", "#{caskroom_path}/base"],
}
binary "#{caskroom_path}/base/condabin/conda"
uninstall delete: "#{caskroom_path}/base"
zap trash: [
"~/.condarc",
"~/.conda",
]
caveats <<~EOS
Please run the following to setup your shell:
conda init "$(basename "${SHELL}")"
EOS
end