From 8eeb9f32a0cb2178e112b0bc406857b63a5bd723 Mon Sep 17 00:00:00 2001 From: brave-builds Date: Mon, 28 Feb 2022 22:44:27 +0000 Subject: [PATCH] Uplift of #12418 (squashed) to beta --- build/mac/BUILD.gn | 1 + script/signing_helper.py | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/build/mac/BUILD.gn b/build/mac/BUILD.gn index 3a112f7fc1dc..458b6530cdd7 100644 --- a/build/mac/BUILD.gn +++ b/build/mac/BUILD.gn @@ -290,6 +290,7 @@ action("sign_app") { unsigned_app_path, provisioning_profile, "$packaging_dir/app-entitlements.plist", + "//brave/script/signing_helper.py", ] outputs = [ signed_app_path ] diff --git a/script/signing_helper.py b/script/signing_helper.py index 357721aab0e8..9895bc500495 100644 --- a/script/signing_helper.py +++ b/script/signing_helper.py @@ -135,6 +135,14 @@ def distributions(self): """ Brave distribution """ return [model.Distribution(channel=brave_channel)] + @property + def codesign_requirements_outer_app(self): + return 'designated => identifier "' + self.base_bundle_id + '"' + + @property + def codesign_requirements_basic(self): + return 'and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists / and certificate leaf[field.1.2.840.113635.100.6.1.13] / exists */' + config_class = ConfigNonChromeBranded if mac_provisioning_profile is not None: