From 0b4e8280afc08f9051672ee6f82a53b19dd03259 Mon Sep 17 00:00:00 2001 From: d3v-null Date: Tue, 24 Sep 2024 08:31:36 +0800 Subject: [PATCH] fix macos makefile --- Makefile.toml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 = """