<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Michael,<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Aug 10, 2023, at 10:48 PM, Michael Hall <<a href="mailto:mik3hall@gmail.com" class="">mik3hall@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<blockquote type="cite" class="">
<div class="">
<div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class=""><br class="">
</div>
<div class="">I assume done with jpackage by indicating something like —mac-sign only? If wrong feel free to correct.</div>
</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">No, it is always done if —mac-sign is NOT specified and we doing ad-hoc signing on app bundle only. PKG will not be ad-hoc signed.</div>
<div class="">If —mac-sign is provided we will use certificate provided with —mac-sign to sign app image and PKG as before.</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">Alexander</div>
</div>
</div>
</blockquote>
<br class="">
</div>
<div class="">I always do dmg or app-image for quick testing. I haven’t done any pkg yet. </div>
<div class=""><br class="">
</div>
<div class="">So if I understand correctly now for app bundle types - dmg or app-image, some signing is always done. Certificate if signing is indicated and it is provided or adhoc if it isn’t indicated as a default. I didn’t know this.</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>Yes, but ad-hoc signing was introduced back in JDK 20 with <a href="https://bugs.openjdk.org/browse/JDK-8298488" class="">https://bugs.openjdk.org/browse/JDK-8298488</a> for macOS x64 and in JDK 19 with <a href="https://bugs.openjdk.org/browse/JDK-8277493" class="">https://bugs.openjdk.org/browse/JDK-8277493</a> for
 macOS aarch64. We do ad-hoc signing for app images when generating PKG as well, so it is for all targets and not only for app-image or dmg.</div>
<div><br class="">
</div>
<div>Thanks,</div>
<div>Alexander</div>
</div>
</body>
</html>