From 672f0a7adaeac0ae9ead2cca32548ed0974886c6 Mon Sep 17 00:00:00 2001 From: Gary Rowe Date: Tue, 16 Apr 2024 13:23:17 +0100 Subject: [PATCH] Fix hardware name on macOS x86 --- build-hidapi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-hidapi.sh b/build-hidapi.sh index 3c43ff1..883d8ef 100755 --- a/build-hidapi.sh +++ b/build-hidapi.sh @@ -424,7 +424,7 @@ echo -e "${green}--------------------------------------------------------------- if [[ "$1" == "all" ]] || [[ "$1" == "darwin" ]] || [[ "$1" == "darwin-aarch64" ]] then # Check if build is possible with local environment - if [[ "${hardwareName}" == "i386" ]] + if [[ "${hardwareName}" == "x86_64" ]] then echo -e "${yellow}Building macOS Darwin x86 (x86-64) requires change of architecture.${plain}" echo -e "${yellow} Re-run with 'arch -arm64 zsh ./build-hidapi.sh darwin-aarch64'${plain}"