Skip to content

Commit 312501a

Browse files
committed
U applescript fixed
1 parent 7450103 commit 312501a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -901,12 +901,12 @@ private void generateDmgImage() throws MojoExecutionException {
901901
params.put("textSize", 16);
902902
params.put("background", backgroundFile.getName());
903903
params.put("file", name + ".app");
904-
params.put("fileX", 20);
905-
params.put("fileY", 20);
906-
params.put("appX", 100);
907-
params.put("appY", 20);
904+
params.put("fileX", 52);
905+
params.put("fileY", 116);
906+
params.put("appX", 360);
907+
params.put("appY", 116);
908908
File applescript = new File(assetsFolder, "customize-dmg.applescript");
909-
getLog().info("Rendering applescript: " + applescript.getAbsolutePath());
909+
getLog().info("Rendering applescript: " + applescript.getAbsolutePath());
910910
VelocityUtils.render("/mac/customize-dmg.applescript.vtl", applescript, params);
911911

912912
// rendering applescript

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ on run (volumeName)
6666
repeat while ejectMe is false
6767
delay 1
6868
set waitTime to waitTime + 1
69-
7069
if (do shell script "[ -f " & dsStore & " ]; echo $?") = "0" then set ejectMe to true
7170
end repeat
7271
log "waited " & waitTime & " seconds for .DS_STORE to be created."

0 commit comments

Comments
 (0)