mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2024-11-21 03:10:58 +08:00
fix: incorrect system architecture detection in macOS.
This commit is contained in:
parent
5561011122
commit
7bad0be2c4
@ -194,7 +194,7 @@ public enum Architecture {
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
Process process = Runtime.getRuntime().exec("/usr/bin/arch");
|
||||
Process process = Runtime.getRuntime().exec(new String[]{"/bin/uname", "-m"});
|
||||
if (process.waitFor(3, TimeUnit.SECONDS)) {
|
||||
try (BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream(), OperatingSystem.NATIVE_CHARSET))) {
|
||||
sysArchName = reader.readLine().trim();
|
||||
|
Loading…
Reference in New Issue
Block a user