Skip to content

Commit

Permalink
fix macos makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v-null committed Sep 24, 2024
1 parent c2dcb74 commit 0b4e828
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = """
Expand Down

0 comments on commit 0b4e828

Please sign in to comment.