From 7be6bd94c658a3730cba97de7992974fe398f168 Mon Sep 17 00:00:00 2001 From: Me No Dev Date: Thu, 31 Mar 2022 18:12:39 +0300 Subject: [PATCH] Allow builds on M1 Macs The only thing preventing builds on M1 macs is failure in downloading `arduino-language-server`. While other downloads do not check the arch, it is checked here. Adding case for `darwin-arm64` fixes the issue. --- arduino-ide-extension/scripts/download-ls.js | 1 + 1 file changed, 1 insertion(+) diff --git a/arduino-ide-extension/scripts/download-ls.js b/arduino-ide-extension/scripts/download-ls.js index f00a8e625..1f3f64696 100755 --- a/arduino-ide-extension/scripts/download-ls.js +++ b/arduino-ide-extension/scripts/download-ls.js @@ -70,6 +70,7 @@ switch (platformArch) { case 'darwin-x64': + case 'darwin-arm64': clangdExecutablePath = path.join(build, 'clangd'); lsSuffix = 'macOS_64bit.tar.gz'; clangdSuffix = 'macOS_64bit';