Fix for mac which identifies as x86_64 instead of amd64 like every other platform.

This commit is contained in:
JacksonAbney
2025-04-20 20:09:16 -08:00
parent dd8aaa87b8
commit ff78266b86

View File

@@ -114,9 +114,9 @@ public final class Main {
}
private static String getArchString(String arch) {
if (arch.equals("amd64")) {
if (arch.equals("amd64") || arch.equals("x86_64")) {
return "x86_64";
} else if (arch.equals("aarch64")) {
} else if (arch.equals("aarch64") || arch.equals("arm64")) {
return "arm64";
} else {
throw new UnsupportedOperationException("Unsupported architecture: " + arch);