Skip to content

Commit

Permalink
add support for apple silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
ajthom90 committed Dec 15, 2020
1 parent 2830bcd commit 1a9d1d8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,12 @@ public String getNodeDownloadFilename(String nodeVersion, boolean archiveOnWindo
}

public String getNodeClassifier() {
String result = getCodename() + "-" + architecture.name();
final String result;
if(isMac() && architecture == Architecture.arm64) { // this check is required to download the x64 binary until there is an arm64 version available for macOS (darwin).
result = getCodename() + "-" + Architecture.x64.name();
} else {
result = getCodename() + "-" + architecture.name();
}
return classifier != null ? result + "-" + classifier : result;
}
}

0 comments on commit 1a9d1d8

Please sign in to comment.