From b7ed90b5fd8385477770060f3589d066dadd9fa8 Mon Sep 17 00:00:00 2001 From: morde Date: Mon, 25 Mar 2024 15:28:49 +0200 Subject: [PATCH 1/2] added: macos arm support ig --- src/helpers/mod.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/helpers/mod.rs b/src/helpers/mod.rs index f08de79..db35f78 100644 --- a/src/helpers/mod.rs +++ b/src/helpers/mod.rs @@ -20,8 +20,10 @@ pub fn get_file_type() -> &'static str { pub fn get_platform_name() -> &'static str { if cfg!(target_os = "windows") { "nvim-win64" - } else if cfg!(target_os = "macos") { - "nvim-macos" + } else if cfg!(target_os = "macos") && cfg!(target_arch = "arm64") { + "nvim-macos-arm64" + } else if cfg!(target_os = "macos") && cfg!(target_arch = "x86_64") { + "nvim-macos-x86_64" } else { "nvim-linux64" } @@ -30,8 +32,10 @@ pub fn get_platform_name() -> &'static str { pub fn get_platform_name_download() -> &'static str { if cfg!(target_os = "windows") { "nvim-win64" - } else if cfg!(target_os = "macos") { - "nvim-macos" + } else if cfg!(target_os = "macos") && cfg!(target_arch = "arm64") { + "nvim-macos-arm64" + } else if cfg!(target_os = "macos") && cfg!(target_arch = "x86_64") { + "nvim-macos-x86_64" } else { "nvim" } From b05efc4087702c2d7a3d6c6d5ebc0b96222359f5 Mon Sep 17 00:00:00 2001 From: MordechaiHadad <33547558+MordechaiHadad@users.noreply.github.com> Date: Mon, 25 Mar 2024 16:21:55 +0200 Subject: [PATCH 2/2] Update src/helpers/mod.rs Co-authored-by: marcus dylan johnson --- src/helpers/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/mod.rs b/src/helpers/mod.rs index db35f78..2bb0e43 100644 --- a/src/helpers/mod.rs +++ b/src/helpers/mod.rs @@ -32,7 +32,7 @@ pub fn get_platform_name() -> &'static str { pub fn get_platform_name_download() -> &'static str { if cfg!(target_os = "windows") { "nvim-win64" - } else if cfg!(target_os = "macos") && cfg!(target_arch = "arm64") { + } else if cfg!(target_os = "macos") && cfg!(target_arch = "aarch64") { "nvim-macos-arm64" } else if cfg!(target_os = "macos") && cfg!(target_arch = "x86_64") { "nvim-macos-x86_64"