Skip to content

Commit cbe5641

Browse files
committed
Update MacPackager.java
1 parent bfc51a2 commit cbe5641

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,13 @@ public File doCreateApp() throws Exception {
149149
}
150150

151151
private void codesign(String developerId, File entitlements, File appFile) throws IOException, CommandLineException {
152-
153-
String warn = "Mac OS version detected: " + SystemUtils.OS_VERSION + " ... hardened runtime ";
154-
152+
155153
List<String> flags = new ArrayList<>();
156154
if (VersionUtils.compareVersions("10.13.6", SystemUtils.OS_VERSION) >= 0) {
157-
warn += "enabled!";
158155
flags.add("runtime"); // enable hardened runtime if Mac OS version >= 10.13.6
159156
} else {
160-
warn += "disabled!";
157+
Logger.warn("Mac OS version detected: " + SystemUtils.OS_VERSION + " ... hardened runtime disabled!");
161158
}
162-
Logger.warn(warn);
163159

164160
List<Object> codesignArgs = new ArrayList<>();
165161
codesignArgs.add("--force");

0 commit comments

Comments
 (0)