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

[macos]: Error when signing the additional launcher

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b27
    • CPU:
      generic
    • OS:
      os_x_10.15

      Description

      ADDITIONAL SYSTEM INFORMATION :
      OS X 10.15

      A DESCRIPTION OF THE PROBLEM :
      The second launcher cannot be signed because it is already signed. It's like being signed twice.
      The same build works before version 17.0.0

      REGRESSION : Last worked in version 16

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Build an application with a second launcher



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      jpackage should exit with 0
      ACTUAL -
      java.io.IOException: Command [/usr/bin/codesign, --timestamp, --options, runtime, -s, ***, --prefix, org.weasis.launcher., -vvvv, --keychain, /Users/runner/Library/Keychains/signing_temp.keychain-db, --entitlements, /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/jdk.jpackage16166130837195785450/config/Weasis.entitlements, weasis-distributions/target/native-dist/Weasis.app/Contents/MacOS/Dicomizer] exited with 1 code
      Error: Process completed with exit code 1.

      ---------- BEGIN SOURCE ----------
      Unfortunately, it is not possible to provide a simple test that requires a real certificate and user information. Here is an example of a command:

      jpackage --type app-image --add-launcher "Dicomizer=second-launcher.properties" --mac-package-identifier" "org.launcher" "--mac-signing-keychain" "$HOME/Library/Keychains/signing_temp.keychain-db" "--mac-sign ...
      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              herrick Andy Herrick (Inactive)
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: