Skip to content
Permalink
Browse files
8255206: [macos] LicenseTest fails on macOS 11
Reviewed-by: asemenyuk, herrick
  • Loading branch information
Alexander Matveev committed Oct 26, 2020
1 parent ca8bba6 commit 8ca59c9e2ebf44cb32013f2c25524047310ad964
Showing with 0 additions and 18 deletions.
  1. +0 −18 src/jdk.incubator.jpackage/macosx/classes/jdk/incubator/jpackage/internal/MacDmgBundler.java
@@ -473,15 +473,6 @@ private Path buildDMG( Map<String, ? super Object> params,

//add license if needed
if (Files.exists(getConfig_LicenseFile(params))) {
//hdiutil unflatten your_image_file.dmg
pb = new ProcessBuilder(
hdiutil,
"unflatten",
finalDMG.toAbsolutePath().toString()
);
IOUtils.exec(pb);

//add license
pb = new ProcessBuilder(
hdiutil,
"udifrez",
@@ -490,15 +481,6 @@ private Path buildDMG( Map<String, ? super Object> params,
getConfig_LicenseFile(params).toAbsolutePath().toString()
);
IOUtils.exec(pb);

//hdiutil flatten your_image_file.dmg
pb = new ProcessBuilder(
hdiutil,
"flatten",
finalDMG.toAbsolutePath().toString()
);
IOUtils.exec(pb);

}

//Delete the temporary image

1 comment on commit 8ca59c9

@bridgekeeper

This comment has been minimized.

Copy link

@bridgekeeper bridgekeeper bot commented on 8ca59c9 Oct 26, 2020

Please sign in to comment.