Merge pull request #3033 from PrismLauncher/backport-3030-to-release-9.x

[Backport release-9.x] Fix system detection for Intel Macs
This commit is contained in:
Alexandru Ionut Tripon 2024-10-30 21:21:49 +02:00 committed by GitHub
commit 52a321b93b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,9 +81,9 @@ QString getSupportedJavaArchitecture()
if (arch == "arm64") if (arch == "arm64")
return "mac-os-arm64"; return "mac-os-arm64";
if (arch.contains("64")) if (arch.contains("64"))
return "mac-os-64"; return "mac-os-x64";
if (arch.contains("86")) if (arch.contains("86"))
return "mac-os-86"; return "mac-os-x86";
// Unknown, maybe something new, appending arch // Unknown, maybe something new, appending arch
return "mac-os-" + arch; return "mac-os-" + arch;
} else if (sys == "linux") { } else if (sys == "linux") {