@@ -83,8 +83,8 @@ public File apply(Packager packager) throws Exception {
83
83
Logger .info ("Creating image: " + tempDmgFile .getAbsolutePath ());
84
84
execute ("hdiutil" , "create" , "-srcfolder" , appFolder , "-volname" , volumeName , "-ov" , "-fs" , "HFS+" , "-format" , "UDRW" , tempDmgFile );
85
85
86
- Logger .info ("Unmounting disk image ..." );
87
86
if (mountFolder .exists ()) {
87
+ Logger .info ("Unmounting volume: " + mountFolder );
88
88
execute ("hdiutil" , "detach" , mountFolder );
89
89
}
90
90
@@ -125,12 +125,12 @@ public File apply(Packager packager) throws Exception {
125
125
execute ("SetFile" , "-a" , "C" , mountFolder );
126
126
127
127
// unmounts
128
- Logger .info ("Unmounting disk image..." );
128
+ Logger .info ("Unmounting volume: " + mountFolder );
129
129
execute ("hdiutil" , "detach" , mountFolder );
130
130
131
131
// compress image
132
132
Logger .info ("Compressing disk image..." );
133
- execute ("hdiutil" , "convert" , tempDmgFile , "-format" , "UDZO" , "-imagekey" , "zlib-level=9" , "-o" , dmgFile );
133
+ execute ("hdiutil" , "convert" , tempDmgFile , "-ov" , "- format" , "UDZO" , "-imagekey" , "zlib-level=9" , "-o" , dmgFile );
134
134
tempDmgFile .delete ();
135
135
136
136
// checks if dmg file was created
0 commit comments