mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Support arch i586 in release file
This commit is contained in:
parent
31489a2b24
commit
cfcd0010a7
2 changed files with 1 additions and 2 deletions
|
@ -46,7 +46,7 @@ private JVMHelper() {
|
||||||
|
|
||||||
public static ARCH getArch(String arch) {
|
public static ARCH getArch(String arch) {
|
||||||
if (arch.equals("amd64") || arch.equals("x86-64") || arch.equals("x86_64")) return ARCH.X86_64;
|
if (arch.equals("amd64") || arch.equals("x86-64") || arch.equals("x86_64")) return ARCH.X86_64;
|
||||||
if (arch.equals("i386") || arch.equals("i686") || arch.equals("x86")) return ARCH.X86;
|
if (arch.equals("i386") || arch.equals("i586") || arch.equals("i686") || arch.equals("x86")) return ARCH.X86;
|
||||||
if (arch.startsWith("armv8") || arch.startsWith("aarch64")) return ARCH.ARM64;
|
if (arch.startsWith("armv8") || arch.startsWith("aarch64")) return ARCH.ARM64;
|
||||||
if (arch.startsWith("arm") || arch.startsWith("aarch32")) return ARCH.ARM32;
|
if (arch.startsWith("arm") || arch.startsWith("aarch32")) return ARCH.ARM32;
|
||||||
throw new InternalError(String.format("Unsupported arch '%s'", arch));
|
throw new InternalError(String.format("Unsupported arch '%s'", arch));
|
||||||
|
|
|
@ -265,7 +265,6 @@ public static JavaVersion getByPath(Path jvmDir) {
|
||||||
arch = JVMHelper.getArch(archProperty);
|
arch = JVMHelper.getArch(archProperty);
|
||||||
}
|
}
|
||||||
} catch (Throwable ignored) {
|
} catch (Throwable ignored) {
|
||||||
arch = null;
|
|
||||||
}
|
}
|
||||||
String modulesProperty = getProperty(properties, "MODULES");
|
String modulesProperty = getProperty(properties, "MODULES");
|
||||||
if(modulesProperty != null) {
|
if(modulesProperty != null) {
|
||||||
|
|
Loading…
Reference in a new issue