Skip to content

Commit 2278a68

Browse files
committed
U fix applescript
1 parent 72bdedc commit 2278a68

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/main/java/io/github/fvarrui/javapackager/PackageMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ private void generateDmgImage() throws MojoExecutionException {
930930

931931
// compress image
932932
getLog().info("Compressing disk image...");
933-
CommandUtils.execute("hdiutil", "convert", tempDmgFile, "-format", "UDZO zlib-level=9", "-o", dmgFile);
933+
CommandUtils.execute("hdiutil", "convert", tempDmgFile, "-format", "UDZO", "-imagekey", "zlib-level=9", "-o", dmgFile);
934934
tempDmgFile.delete();
935935

936936
getLog().info("DMG disk image file generated!");

src/main/resources/mac/customize-dmg.applescript.vtl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ on run (volumeName)
33
tell disk (volumeName as string)
44
open
55

6-
set theXOrigin to ${windowX}
7-
set theYOrigin to ${windowY}
8-
set theWidth to ${windowWidth}
9-
set theHeight to ${windowHeight}
6+
set theXOrigin to ${info.windowX}
7+
set theYOrigin to ${info.windowY}
8+
set theWidth to ${info.windowWidth}
9+
set theHeight to ${info.windowHeight}
1010

1111
set theBottomRightX to (theXOrigin + theWidth)
1212
set theBottomRightY to (theYOrigin + theHeight)
@@ -23,20 +23,20 @@ on run (volumeName)
2323

2424
set opts to the icon view options of container window
2525
tell opts
26-
set icon size to ${iconSize}
27-
set text size to ${textSize}
26+
set icon size to ${info.iconSize}
27+
set text size to ${info.textSize}
2828
set arrangement to not arranged
2929
end tell
30-
set background picture of opts to file ".background:${background}"
30+
set background picture of opts to file ".background:${info.background}"
3131

3232
-- Positioning
33-
set position of item "${file}" to {${fileX}, ${fileY}}
33+
set position of item "${info.file}" to {${info.fileX}, ${info.fileY}}
3434

3535
-- Hiding
36-
set the extension hidden of item "${file}" to true
36+
set the extension hidden of item "${info.file}" to true
3737

3838
-- Application
39-
set position of item "Applications" to {${appX}, ${appY}}
39+
set position of item "Applications" to {${info.appX}, ${info.appY}}
4040

4141
close
4242
open

0 commit comments

Comments
 (0)