diff --git a/Makefile.toml b/Makefile.toml index e6cf576..1e87e69 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -122,8 +122,29 @@ dependencies = ["install_cfitsio"] [tasks.linux_install_deps] dependencies = ["linux_install_aoflagger"] +[tasks.mac_install_deps] +script = """ +brew tap casacore/tap + +if [[ $(uname -m) == 'arm64' ]]; then + wget https://github.com/casacore/homebrew-tap/releases/download/casacore-data-160001/casacore-data-160001.arm64_sonoma.bottle.1.tar.gz -O casacore-data--160001.arm64_sonoma.bottle.tar.gz + brew install -f casacore-data--160001.arm64_sonoma.bottle.tar.gz + wget https://github.com/casacore/homebrew-tap/releases/download/casacore-3.5.0/casacore-3.5.0.arm64_sonoma.bottle.tar.gz -O casacore-3.5.0.arm64_sonoma.bottle.tar.gz + brew install -f casacore-3.5.0.arm64_sonoma.bottle.tar.gz +else + wget https://github.com/casacore/homebrew-tap/releases/download/casacore-data-160001/casacore-data-160001.ventura.bottle.1.tar.gz -O casacore-data--160001.ventura.bottle.tar.gz + brew install -f casacore-data--160001.ventura.bottle.tar.gz + wget https://github.com/casacore/homebrew-tap/releases/download/casacore-3.5.0/casacore-3.5.0.ventura.bottle.tar.gz -O casacore-3.5.0.ventura.bottle.tar.gz + brew install -f casacore-3.5.0.ventura.bottle.tar.gz +fi + +brew tap mwatelescope/tap +brew install mwatelescope/tap/aoflagger +""" + [tasks.install_deps] linux_alias = "linux_install_deps" +mac_alias = "mac_install_deps" [tasks.linux_check_deps] script = """