Skip to content

Commit

Permalink
fix os detection
Browse files Browse the repository at this point in the history
  • Loading branch information
billwert committed Dec 29, 2022
1 parent 964bf01 commit 4780c59
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,11 @@ private static class PlatformInfo {
} else if (osName.contains("linux")) {
platform = "linux";
extension = "tar.gz";
} else {
} else if (osName.contains("mac os x")) {
platform = "osx";
extension = "zip";
} else {
throw new RuntimeException("unexpected osName " + osName);
}
String arch = System.getProperty("os.arch").toLowerCase(Locale.ROOT);
if (arch.contains("amd64")) {
Expand Down

0 comments on commit 4780c59

Please sign in to comment.