Skip to content

Commit 8ca59c9

Browse files
author
Alexander Matveev
committed
8255206: [macos] LicenseTest fails on macOS 11
Reviewed-by: asemenyuk, herrick
1 parent ca8bba6 commit 8ca59c9

File tree

1 file changed

+0
-18
lines changed
  • src/jdk.incubator.jpackage/macosx/classes/jdk/incubator/jpackage/internal

1 file changed

+0
-18
lines changed

src/jdk.incubator.jpackage/macosx/classes/jdk/incubator/jpackage/internal/MacDmgBundler.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -473,15 +473,6 @@ private Path buildDMG( Map<String, ? super Object> params,
473473

474474
//add license if needed
475475
if (Files.exists(getConfig_LicenseFile(params))) {
476-
//hdiutil unflatten your_image_file.dmg
477-
pb = new ProcessBuilder(
478-
hdiutil,
479-
"unflatten",
480-
finalDMG.toAbsolutePath().toString()
481-
);
482-
IOUtils.exec(pb);
483-
484-
//add license
485476
pb = new ProcessBuilder(
486477
hdiutil,
487478
"udifrez",
@@ -490,15 +481,6 @@ private Path buildDMG( Map<String, ? super Object> params,
490481
getConfig_LicenseFile(params).toAbsolutePath().toString()
491482
);
492483
IOUtils.exec(pb);
493-
494-
//hdiutil flatten your_image_file.dmg
495-
pb = new ProcessBuilder(
496-
hdiutil,
497-
"flatten",
498-
finalDMG.toAbsolutePath().toString()
499-
);
500-
IOUtils.exec(pb);
501-
502484
}
503485

504486
//Delete the temporary image

0 commit comments

Comments
 (0)