Skip to content

Commit

Permalink
added: macos arm support ig
Browse files Browse the repository at this point in the history
  • Loading branch information
MordechaiHadad committed Mar 25, 2024
1 parent ce6db67 commit b7ed90b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/helpers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand All @@ -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"
}
Expand Down

0 comments on commit b7ed90b

Please sign in to comment.