JDK-8286850 : [macos] Add support for signing user provided app image
  • Type: Enhancement
  • Component: tools
  • Sub-Component: jpackage
  • Affected Version: 17,18,19
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2022-05-17
  • Updated: 2022-06-08
  • Resolved: 2022-06-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 19
19 masterFixed
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
Description
Currently jpackage does not have ability to sign app image provided by user. So, if user wants to modified content of app image before packaging it to PKG/DMG or submitting it to Mac App Store app image needs to be manually signed.

Proposed enhancement is to sign app image in place with following command:
jpackage --type app-image --app-image Test.app --mac-sign ...

Current implementation will give error:
Error: Option [--app-image] is not valid with type [app-image]

Generating DMG or PKG from —app-image with signing enabled will not sign app image as it currently do.
Comments
Changeset: 7a0c8b14 Author: Alexander Matveev <almatvee@openjdk.org> Date: 2022-06-03 20:27:58 +0000 URL: https://git.openjdk.java.net/jdk/commit/7a0c8b14aaf3573f5ea2bd2cc759c854825e6893
03-06-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8987 Date: 2022-06-02 05:17:25 +0000
02-06-2022