diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2020-12-02 17:16:50 -0600 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2020-12-02 18:35:48 -0600 |
commit | b0de7b20160ba1910987c9165bc88689e6587c41 (patch) | |
tree | 167f119d84d52f0c65a2eb0bec587fe712667faa | |
parent | 6ed09cb8c2c27f30bec1eccb153db80dc5a77520 (diff) |
Check for rosetta 2 support before installing
-rwxr-xr-x[-rw-r--r--] | scripts/install.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/install.in b/scripts/install.in index 7c3b795cc..46d3817b9 100644..100755 --- a/scripts/install.in +++ b/scripts/install.in @@ -46,6 +46,11 @@ case "$(uname -s).$(uname -m)" in system=x86_64-darwin ;; Darwin.arm64) + # check for Rosetta 2 support + if ! [ -d /Library/Apple/usr/libexec/oah ]; then + oops "Rosetta 2 is not installed on this ARM64 macOS machine. Run softwareupdate --install-rosetta then restart installation" + fi + hash=@binaryTarball_x86_64-darwin@ path=@tarballPath_x86_64-darwin@ # eventually maybe: arm64-darwin |