forked from lix-project/lix
Check for rosetta 2 support before installing
This commit is contained in:
parent
6ed09cb8c2
commit
b0de7b2016
1 changed files with 5 additions and 0 deletions
5
scripts/install.in
Normal file → Executable file
5
scripts/install.in
Normal file → Executable file
|
@ -46,6 +46,11 @@ case "$(uname -s).$(uname -m)" in
|
||||||
system=x86_64-darwin
|
system=x86_64-darwin
|
||||||
;;
|
;;
|
||||||
Darwin.arm64)
|
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@
|
hash=@binaryTarball_x86_64-darwin@
|
||||||
path=@tarballPath_x86_64-darwin@
|
path=@tarballPath_x86_64-darwin@
|
||||||
# eventually maybe: arm64-darwin
|
# eventually maybe: arm64-darwin
|
||||||
|
|
Loading…
Reference in a new issue