Skip to content

Commit 919b785

Browse files
committed
Update Packager.java
1 parent 60f3883 commit 919b785

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/io/github/fvarrui/javapackager/packagers

1 file changed

+1
-1
lines changed

src/main/java/io/github/fvarrui/javapackager/packagers/Packager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ protected void bundleJre(File destinationFolder, File jarFile, File libsFolder,
252252
Logger.info("Creating customized JRE ...");
253253

254254
// fixes the path to the JDK on MacOS
255-
if (platform.equals(Platform.mac)) {
255+
if (platform.equals(Platform.mac) && !platform.isCurrentPlatform()) {
256256
jdkPath = new File(jdkPath, "Contents/Home");
257257
}
258258

0 commit comments

Comments
 (0)