From 3f050a750da108377b3eecf20ed748159b84e968 Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Mon, 1 Feb 2021 00:49:04 +0300 Subject: [PATCH] Added check for Mac M1 --- scripts/install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index cfa02759..ecc2303b 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -184,6 +184,13 @@ main() { OS=$(detect_os) || error_exit "Cannot detect your OS" CPU=$(detect_cpu) || error_exit "Cannot detect your CPU" + + # TODO: Remove when Mac M1 native support is added + if [ "${OS}" = "darwin" ] && [ "${CPU}" = "arm64" ]; then + CPU="amd64" + log_info "Use ${CPU} build on Mac M1 until the native ARM support is added" + fi + PKG_EXT=$(package_extension) PKG_NAME=AdGuardHome_${OS}_${CPU}.${PKG_EXT}