Added check for Mac M1

This commit is contained in:
Andrey Meshkov 2021-02-01 00:49:04 +03:00
parent a32f8118b1
commit 3f050a750d
1 changed files with 7 additions and 0 deletions

View File

@ -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}