From 1f1b064ee9d4e928d357d93683420558cb97657c Mon Sep 17 00:00:00 2001 From: Zhihe Li Date: Wed, 12 Oct 2022 18:52:36 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fix=20mac=20intel=20cli?= =?UTF-8?q?=20download=20(#1375)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/desktop/electron-app/config/cli.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/desktop/electron-app/config/cli.js b/ui/desktop/electron-app/config/cli.js index c39c4e53f..64eaab57d 100644 --- a/ui/desktop/electron-app/config/cli.js +++ b/ui/desktop/electron-app/config/cli.js @@ -11,7 +11,10 @@ const downloadArtifact = (version) => { const archivePlatform = {}; if (isMac()) { archivePlatform.name = 'darwin'; - archivePlatform.arch = os.arch(); + let arch = os.arch(); + // Map x64 to amd64 cli artifact + if (arch.match(/(x64)/i)) arch = 'amd64'; + archivePlatform.arch = arch; } if (isWindows()) {