-
Notifications
You must be signed in to change notification settings - Fork 909
/
Copy pathchrome-installer-mac-sign_app.sh.in.patch
36 lines (31 loc) · 1.28 KB
/
chrome-installer-mac-sign_app.sh.in.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff --git a/chrome/installer/mac/sign_app.sh.in b/chrome/installer/mac/sign_app.sh.in
index a2694af5cc7a66103ad4f88778c2bc25133c97b9..f0a70b137f10f971d4d81c5bd8be5311182bdcb3 100644
--- a/chrome/installer/mac/sign_app.sh.in
+++ b/chrome/installer/mac/sign_app.sh.in
@@ -40,10 +40,7 @@ if [[ ${#} == 4 && "${4}" == "--development" ]]; then
fi
script_dir="$(dirname "${0}")"
-source "${script_dir}/variables.sh"
-
-# Use custom resource rules for the browser application.
-browser_app_rules="${script_dir}/app_resource_rules.plist"
+codesign_id=$codesign_id source "${script_dir}/variables.sh"
versioned_dir="${app_path}/Contents/Versions/@VERSION@"
@@ -57,10 +54,7 @@ app_mode_loader="${app_mode_loader_app}/Contents/MacOS/app_mode_loader"
requirement="\
designated => \
-(identifier \"com.google.Chrome\" or \
-identifier \"com.google.Chrome.beta\" or \
-identifier \"com.google.Chrome.dev\" or \
-identifier \"com.google.Chrome.canary\") \
+identifier \"org.brave.Brave\" \
${requirement_suffix} \
"
@@ -68,7 +62,6 @@ codesign_cmd=(
codesign --sign "${codesign_id}" --keychain "${codesign_keychain}"
"${browser_app}"
--options "${enforcement_flags_app}"
- --resource-rules "${browser_app_rules}"
)
if [[ -z "${is_development}" ]]; then
codesign_cmd+=( -r="${requirement}" )