homebrew-cask/Casks/miniconda.rb

33 lines
946 B
Ruby

cask 'miniconda' do
version '4.6.14'
sha256 '2ec958508139289df3b5e2c10257311af4f0ebf39242f61d39f11e7fa14ebb40'
# repo.anaconda.com/miniconda was verified as official when first introduced to the cask
url "https://repo.anaconda.com/miniconda/Miniconda3-#{version}-MacOSX-x86_64.sh"
name 'Continuum Analytics Miniconda'
homepage 'https://conda.io/miniconda.html'
auto_updates true
container type: :naked
installer script: {
executable: "Miniconda3-#{version}-MacOSX-x86_64.sh",
args: ['-b', '-p', "#{caskroom_path}/base"],
}
binary "#{caskroom_path}/base/condabin/conda"
uninstall delete: "#{caskroom_path}/base"
zap trash: [
'~/.condarc',
'~/.conda',
'~/.continuum',
]
caveats <<~EOS
Please run the following to setup your shell:
conda init "$(basename "${SHELL}")"
EOS
end