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

[macos] app image signature invalid when creating DMG or PKG

XMLWordPrintable

    • b31
    • Verified

        Signature is invalid on app-image after it was install/deployed via DMG or PKG.

        PKG issue:
        1) jpackage --type pkg -i input -n Test --main-class components.DynamicTreeDemo --main-jar DynamicTreeDemo.jar --mac-sign
        2) Install pkg file
        3) Verify signature and it will not be valid signature.
        codesign -vvvv /Applications/Test.app
        /Applications/Test.app: a sealed resource is missing or invalid
        file added: /Applications/Test.app/Contents/app/.package
        file missing: /Applications/Test.app/Contents/app/.jpackage.xml

        DMG issue:
        1) jpackage --type dmg -i input -n Test --main-class components.DynamicTreeDemo --main-jar DynamicTreeDemo.jar --mac-sign
        2) Mount DMG file
        3) Verify signature and it will not be valid signature.
        codesign -vvvv /Volumes/Test/Test.app
        /Volumes/Test/Test.app: a sealed resource is missing or invalid
        file added: /Volumes/Test/Test.app/Contents/app/.package
        file missing: /Volumes/Test/Test.app/Contents/app/.jpackage.xml

        App-image DMG issue:
        1) jpackage --type app-image -i input -n Test --main-class components.DynamicTreeDemo --main-jar DynamicTreeDemo.jar --mac-sign
        2) jpackage --type dmg --app-image Test.app
        3) Verify signature and it will not be valid signature.
        codesign -vvv /Volumes/Test/Test.app
        /Volumes/Test/Test.app: a sealed resource is missing or invalid
        file added: /Volumes/Test/Test.app/Contents/app/.package
        file modified: /Volumes/Test/Test.app/Contents/runtime/Contents/Home/legal/java.compiler/COPYRIGHT
        .....
        file modified: /Volumes/Test/Test.app/Contents/runtime/Contents/Home/legal/jdk.zipfs/LICENSE
        file missing: /Volumes/Test/Test.app/Contents/app/.jpackage.xml

        App-image PKG issue:
        Same as "App-image DMG issue".

              almatvee Alexander Matveev
              almatvee Alexander Matveev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: