Skip to content

Commit fe92c92

Browse files
committed
U fixed issue when jre packaging is disabled during the process
1 parent f4ab009 commit fe92c92

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ protected File doApply(Packager packager) throws Exception {
133133

134134
}
135135

136-
// removes jre/legal folder
136+
// removes jre/legal folder as it causes problems when codesigning from Mac OS
137137
File legalFolder = new File(destinationFolder, "legal");
138138
if (legalFolder.exists()) {
139139
FileUtils.removeFolder(legalFolder);
@@ -144,6 +144,10 @@ protected File doApply(Packager packager) throws Exception {
144144
} else {
145145
Logger.infoUnindent("JRE bundling skipped!");
146146
}
147+
148+
// updates bundle jre property value, as this artifact generator could disable this option
149+
// (e.g. when bundling a jre from a different platform than the current one)
150+
packager.bundleJre(bundleJre);
147151

148152
return destinationFolder;
149153
}

0 commit comments

Comments
 (0)