Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8237607

[macos] Signing app bundle with jpackage fails if runtime is already signed

    Details

    • Subcomponent:
    • Resolved In Build:
      b34
    • OS:
      os_x

      Backports

        Description

        This issue can be reproduced with jdk14 and jdk15.

        jdk-14.jdk/Contents/Home/bin/jpackage --input ./input --dest output --name Test --type dmg --main-jar hello.jar --main-class Hello --mac-sign --mac-signing-key-user-name jpackage.openjdk.java.net --mac-signing-keychain jpackagerTest.keychain --verbose

        will fail with error below:
        /var/folders/wv/v95v04852ssgxhyxm38xp9lh0000gn/T/jdk.incubator.jpackage15520659922256584206/images/image-4513431408695035725/Test.app/Contents/runtime: is already signed
        java.io.IOException: Command [codesign, -s, Developer ID Application: jpackage.openjdk.java.net, --prefix, Hello., -vvvv, --keychain, jpackagerTest.keychain, /var/folders/wv/v95v04852ssgxhyxm38xp9lh0000gn/T/jdk.incubator.jpackage15520659922256584206/images/image-4513431408695035725/Test.app/Contents/runtime] exited with 1 code

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  almatvee Alexander Matveev
                  Reporter:
                  almatvee Alexander Matveev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: