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

Reviewed-by: herrick, asemenyuk, kcr
This commit is contained in:
Alexander Matveev 2020-01-24 11:24:28 -05:00
parent f4f7dbd54c
commit f8f98bdbff

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -823,6 +823,7 @@ public class MacAppImageBuilder extends AbstractAppImageBuilder {
try {
List<String> args = new ArrayList<>();
args.addAll(Arrays.asList("codesign",
"-f",
"-s", signingIdentity, // sign with this key
"--prefix", identifierPrefix,
// use the identifier as a prefix