Skip to content

Commit

Permalink
[576898] Support a native installer for macosx aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
merks committed Oct 26, 2021
1 parent 5feb93d commit 2f5a0ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
Expand Up @@ -182,6 +182,12 @@ public boolean isMatch(JREFilter filter)
return false;
}

String filterArch = filter.getArch();
if (!StringUtil.isEmpty(filterArch) && !StringUtil.isEmpty(arch) && !filterArch.equals(arch))
{
return false;
}

Boolean filterJDK = filter.isJDK();
if (filterJDK != null && jdk != filterJDK.booleanValue())
{
Expand Down Expand Up @@ -237,12 +243,6 @@ public boolean isMatch(JREFilter filter)
return false;
}

String filterArch = filter.getArch();
if (!StringUtil.isEmpty(filterArch) && !StringUtil.isEmpty(arch) && !filterArch.equals(arch))
{
return false;
}

return true;
}

Expand Down
Expand Up @@ -188,6 +188,7 @@ public String toString()
if (!StringUtil.isEmpty(arch))
{
builder.append(arch);
builder.append(" "); //$NON-NLS-1$
}

if (jdk != null)
Expand Down
Expand Up @@ -296,11 +296,6 @@ public static void close(Closeable closeable)

private static OS create()
{
if (Boolean.FALSE)
{
return new Mac(Platform.WS_COCOA, Platform.ARCH_AARCH64);
}

String os = Platform.getOS();
String ws = Platform.getWS();
String arch = Platform.getOSArch();
Expand Down

0 comments on commit 2f5a0ce

Please sign in to comment.