Skip to content

Commit

Permalink
fix windows ni build?
Browse files Browse the repository at this point in the history
  • Loading branch information
ianopolous committed Mar 26, 2024
1 parent f8cf010 commit eca9e7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion native-build/BuildNativeImage.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public static void main(String[] a) throws Exception {

String ext = OS.equals("windows") ? ".exe" : "";
Optional<Path> nativeImage = Files.walk(Paths.get("."), 5)
.filter(p -> p.getFileName().toString().contains("native-image") && !p.toFile().isDirectory())
.filter(p -> !p.toFile().isDirectory())
.filter(p -> p.getFileName().toString().endsWith("native-image" + binExt))
.findFirst();
if (nativeImage.isEmpty())
throw new IllegalStateException("Couldn't find native image executable");
Expand Down

0 comments on commit eca9e7c

Please sign in to comment.