Skip to content

Commit 9050581

Browse files
committed
Update GenerateDmg.java
1 parent 773460a commit 9050581

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/io/github/fvarrui/javapackager/packagers/GenerateDmg.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,11 @@ protected File doApply(MacPackager packager) throws Exception {
134134
if (!isAarch64) {
135135
// makes the top window open itself on mount:
136136
Logger.info("Blessing ...");
137-
execute("bless", "--folder", mountFolder, "--openfolder", mountFolder);
137+
try {
138+
execute("bless", "--folder", mountFolder, "--openfolder", mountFolder); }
139+
catch (Exception e){
140+
Logger.warn("Error blessing " + mountFolder + " due to: " + e.getMessage());
141+
}
138142
}
139143

140144
// tells the volume that it has a special file attribute

0 commit comments

Comments
 (0)