Skip to content

Commit

Permalink
Merge pull request #189 from MordechaiHadad/fix/arm-macos
Browse files Browse the repository at this point in the history
Add support for download arm macos binaries
  • Loading branch information
MordechaiHadad authored Mar 25, 2024
2 parents 6b00c49 + b05efc4 commit 1805051
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 = "aarch64") {
"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 1805051

Please sign in to comment.