For the Apple notarization process, the whole bundle in its final form has to be signed with the codesign tool. See the discussion here: https://bugs.openjdk.java.net/browse/JDK-8238225
This change copies all JDK/JRE files to a temporary directory, which is then passed to the codesign tool. The temporary directory is then used as the base directory for the bundle archive and is getting removed after the archive has been created. This only applies when a valid code signing identity is set and the build type is release. Bug: https://bugs.openjdk.java.net/browse/JDK-8238534 WebRev: http://cr.openjdk.java.net/~rschuenemann/wr/2020/8238534-macos_sign_bundles/01/ Rene
