This is an automated email from the ASF dual-hosted git repository. erisu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cordova-ios.git
The following commit(s) were added to refs/heads/master by this push: new c528790b feat: support multiple provisioning profiles (#1251) c528790b is described below commit c528790b089aca33debcfcbb6086eb3701b1832c Author: Oleguer Llopart <oleguer.llopart.m...@gmail.com> AuthorDate: Mon Sep 5 04:59:00 2022 +0200 feat: support multiple provisioning profiles (#1251) --- lib/build.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/build.js b/lib/build.js index 0e00aa9a..57d34ca8 100644 --- a/lib/build.js +++ b/lib/build.js @@ -167,7 +167,12 @@ module.exports.run = function (buildOpts) { extraConfig += `CODE_SIGN_RESOURCE_RULES_PATH = ${buildOpts.codeSignResourceRules}\n`; } if (buildOpts.provisioningProfile) { - extraConfig += `PROVISIONING_PROFILE = ${buildOpts.provisioningProfile}\n`; + if (typeof buildOpts.provisioningProfile === 'string') { + extraConfig += `PROVISIONING_PROFILE = ${buildOpts.provisioningProfile}\n`; + } else { + const keys = Object.keys(buildOpts.provisioningProfile); + extraConfig += `PROVISIONING_PROFILE = ${buildOpts.provisioningProfile[keys[0]]}\n`; + } } if (buildOpts.developmentTeam) { extraConfig += `DEVELOPMENT_TEAM = ${buildOpts.developmentTeam}\n`; @@ -230,7 +235,12 @@ module.exports.run = function (buildOpts) { } if (buildOpts.provisioningProfile && bundleIdentifier) { - exportOptions.provisioningProfiles = { [bundleIdentifier]: String(buildOpts.provisioningProfile) }; + if (typeof buildOpts.provisioningProfile === 'string') { + exportOptions.provisioningProfiles = { [bundleIdentifier]: String(buildOpts.provisioningProfile) }; + } else { + events.emit('log', 'Setting multiple provisioning profiles for signing'); + exportOptions.provisioningProfiles = buildOpts.provisioningProfile; + } exportOptions.signingStyle = 'manual'; } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org