diff --git a/dist/linux/appimage/build.sh b/dist/linux/appimage/build.sh index 4523e1481..840c98de0 100755 --- a/dist/linux/appimage/build.sh +++ b/dist/linux/appimage/build.sh @@ -54,7 +54,7 @@ fi # create runtime ## check for JEP 493 JMOD_PATHS="openjfx-jmods" -if $(${JAVA_HOME}/bin/jlink --help | grep -q "Linking from run-time image enabled"); then +if ! $(${JAVA_HOME}/bin/jlink --help | grep -q "Linking from run-time image enabled"); then JMOD_PATHS="${JAVA_HOME}/jmods:${JMOD_PATHS}" fi ## create runtime image diff --git a/dist/mac/dmg/build.sh b/dist/mac/dmg/build.sh index e7fabb1be..59c31ba78 100755 --- a/dist/mac/dmg/build.sh +++ b/dist/mac/dmg/build.sh @@ -78,7 +78,7 @@ cp ../../../target/${MAIN_JAR_GLOB} ../../../target/mods # create runtime ## check for JEP 493 JMOD_PATHS="openjfx-jmods" -if $(${JAVA_HOME}/bin/jlink --help | grep -q "Linking from run-time image enabled"); then +if ! $(${JAVA_HOME}/bin/jlink --help | grep -q "Linking from run-time image enabled"); then JMOD_PATHS="${JAVA_HOME}/jmods:${JMOD_PATHS}" fi ## create custom runtime diff --git a/dist/win/build.ps1 b/dist/win/build.ps1 index cf5c0a043..587324ab8 100644 --- a/dist/win/build.ps1 +++ b/dist/win/build.ps1 @@ -91,7 +91,7 @@ Move-Item -Force -Path ".\resources\javafx-jmods-*" -Destination ".\resources\ja ## create custom runtime ### check for JEP 493 $jmodPaths="$buildDir/resources/javafx-jmods"; -if ((& "$Env:JAVA_HOME\bin\jlink" --help | Select-String -Pattern "Linking from run-time image enabled" -SimpleMatch | Measure-Object).Count -gt 0 ) { +if ((& "$Env:JAVA_HOME\bin\jlink" --help | Select-String -Pattern "Linking from run-time image enabled" -SimpleMatch | Measure-Object).Count -eq 0 ) { $jmodPaths="$Env:JAVA_HOME/jmods;" + $jmodPaths; } ### create runtime