Fix #873: On 64 bit x86 machines, os.arch may be x64 or x86-64

This commit is contained in:
Glavo 2021-05-17 03:20:58 +08:00 committed by Yuhui Huang
parent 947a2e3d91
commit cecabe5bc4

View File

@ -73,9 +73,10 @@ public class SelfDependencyPatcher {
// We can only self-patch JavaFX on x86 platform.
// For ARM support, user's manual patch is required.
switch (System.getProperty("os.arch")) {
switch (System.getProperty("os.arch", "unknown").toLowerCase()) {
case "amd64":
case "x86":
case "x64":
case "x86-64":
break;
default:
throw new IncompatibleVersionException();