mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer (Xcode): Only code-sign a copy of a plugin when EXPANDED_CODE_SIGN_IDENTITY is available
This commit is contained in:
parent
ae5144833e
commit
3b7aaee7e7
1 changed files with 10 additions and 8 deletions
|
|
@ -2590,14 +2590,16 @@ private:
|
|||
: "/${FULL_PRODUCT_NAME}";
|
||||
|
||||
const auto codesignScript = ScriptBuilder{}
|
||||
.ifSet ("CODE_SIGN_ENTITLEMENTS",
|
||||
R"(entitlementsArg=(--entitlements "${CODE_SIGN_ENTITLEMENTS}"))")
|
||||
.echo ("Signing Identity: " + doubleQuoted ("${EXPANDED_CODE_SIGN_IDENTITY_NAME}") )
|
||||
.run ("codesign --verbose=4 --force --sign",
|
||||
doubleQuoted ("${EXPANDED_CODE_SIGN_IDENTITY}"),
|
||||
"${entitlementsArg[*]-}",
|
||||
"${OTHER_CODE_SIGN_FLAGS-}",
|
||||
doubleQuoted (installPath + objectToSignTail));
|
||||
.ifSet ("EXPANDED_CODE_SIGN_IDENTITY",
|
||||
ScriptBuilder{}.ifSet ("CODE_SIGN_ENTITLEMENTS",
|
||||
R"(entitlementsArg=(--entitlements "${CODE_SIGN_ENTITLEMENTS}"))")
|
||||
.echo ("Signing Identity: " + doubleQuoted ("${EXPANDED_CODE_SIGN_IDENTITY_NAME}") )
|
||||
.run ("codesign --verbose=4 --force --sign",
|
||||
doubleQuoted ("${EXPANDED_CODE_SIGN_IDENTITY}"),
|
||||
"${entitlementsArg[*]-}",
|
||||
"${OTHER_CODE_SIGN_FLAGS-}",
|
||||
doubleQuoted (installPath + objectToSignTail))
|
||||
.toString());
|
||||
|
||||
copyPluginStepScript.ifEqual (doubleQuoted ("${CONFIGURATION}"), doubleQuoted (config->getName()),
|
||||
ScriptBuilder{}.insertScript (copyScript.toString())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue