mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-31 18:58:51 -04:00
Add checks for arm OS arch
This commit is contained in:
parent
7855181fc6
commit
5a2c17af80
2 changed files with 8 additions and 0 deletions
|
@ -133,6 +133,8 @@ public class Utilities {
|
||||||
return arch.endsWith("64")
|
return arch.endsWith("64")
|
||||||
|| wow64Arch != null && wow64Arch.endsWith("64")
|
|| wow64Arch != null && wow64Arch.endsWith("64")
|
||||||
? "64" : "32";
|
? "64" : "32";
|
||||||
|
} else if (osArch.contains("arm")) {
|
||||||
|
return osArch.contains("64") ? "64" : "32";
|
||||||
} else if (isLinux()) {
|
} else if (isLinux()) {
|
||||||
return osArch.startsWith("i") ? "32" : "64";
|
return osArch.startsWith("i") ? "32" : "64";
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -87,12 +87,18 @@ public class OsData {
|
||||||
throw new RuntimeException("Uname returned error code " + exit);
|
throw new RuntimeException("Uname returned error code " + exit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
System.out.println("INFO: uname -m call results in:" + unameOutput);
|
||||||
|
|
||||||
if (unameOutput.matches("i.86")) {
|
if (unameOutput.matches("i.86")) {
|
||||||
return OsType.Linux32;
|
return OsType.Linux32;
|
||||||
}
|
}
|
||||||
if (unameOutput.compareTo("x86_64") == 0) {
|
if (unameOutput.compareTo("x86_64") == 0) {
|
||||||
return OsType.Linux64;
|
return OsType.Linux64;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (unameOutput.contains("arm"))
|
||||||
|
return unameOutput.contains("64") ? OsType.Linux64 : OsType.Linux32;
|
||||||
|
|
||||||
throw new RuntimeException("Could not understand uname output, not sure what bitness");
|
throw new RuntimeException("Could not understand uname output, not sure what bitness");
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException("Uname failure", e);
|
throw new RuntimeException("Uname failure", e);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue