Commit e25c04d0 authored by Martin Kreichgauer's avatar Martin Kreichgauer Committed by Robert Sesek

Revert "chrome/installer/mac: set -x in sign_app and fix unquoted variable...

Revert "chrome/installer/mac: set -x in sign_app and fix unquoted variable expansion" and "//chrome/installer/mac: add entitlements during code signing"

This reverts commits a221822f and
b69d8c48.

Bug: 850890, 848052
Change-Id: I1b34c71d6522a051abc44a00b43b2466edffe51b
Reviewed-on: https://chromium-review.googlesource.com/1093119Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Commit-Queue: Martin Kreichgauer <martinkr@google.com>
Cr-Commit-Position: refs/heads/master@{#565701}
parent 66f6e18b
...@@ -1041,7 +1041,7 @@ deps = { ...@@ -1041,7 +1041,7 @@ deps = {
Var('chromium_git') + '/v8/v8.git' + '@' + Var('v8_revision'), Var('chromium_git') + '/v8/v8.git' + '@' + Var('v8_revision'),
'src-internal': { 'src-internal': {
'url': 'https://chrome-internal.googlesource.com/chrome/src-internal.git@fcf6e2b9826aaa0e8fa8f93d2239d351e162843c', 'url': 'https://chrome-internal.googlesource.com/chrome/src-internal.git@119a08e0d996d388b87a41005af840f3344c6f88',
'condition': 'checkout_src_internal', 'condition': 'checkout_src_internal',
}, },
......
...@@ -20,8 +20,7 @@ _branding_dictionary_template = ...@@ -20,8 +20,7 @@ _branding_dictionary_template =
"bundle_id = \"@MAC_BUNDLE_ID@\" " + "bundle_id = \"@MAC_BUNDLE_ID@\" " +
"creator_code = \"@MAC_CREATOR_CODE@\" " + "creator_code = \"@MAC_CREATOR_CODE@\" " +
"installer_full_name = \"@PRODUCT_INSTALLER_FULLNAME@\" " + "installer_full_name = \"@PRODUCT_INSTALLER_FULLNAME@\" " +
"installer_short_name = \"@PRODUCT_INSTALLER_SHORTNAME@\" " + "installer_short_name = \"@PRODUCT_INSTALLER_SHORTNAME@\" "
"team_id = \"@MAC_TEAM_ID@\" "
_branding_file = "//chrome/app/theme/$branding_path_component/BRANDING" _branding_file = "//chrome/app/theme/$branding_path_component/BRANDING"
_result = exec_script("version.py", _result = exec_script("version.py",
...@@ -42,5 +41,4 @@ chrome_product_installer_short_name = _result.installer_short_name ...@@ -42,5 +41,4 @@ chrome_product_installer_short_name = _result.installer_short_name
if (is_mac) { if (is_mac) {
chrome_mac_bundle_id = _result.bundle_id chrome_mac_bundle_id = _result.bundle_id
chrome_mac_creator_code = _result.creator_code chrome_mac_creator_code = _result.creator_code
chrome_mac_team_id = _result.team_id
} }
...@@ -33,7 +33,6 @@ if (is_android) { ...@@ -33,7 +33,6 @@ if (is_android) {
import("//build/linux/extract_symbols.gni") import("//build/linux/extract_symbols.gni")
} else if (is_mac) { } else if (is_mac) {
import("//build/compiled_action.gni") import("//build/compiled_action.gni")
import("//build/config/mac/base_rules.gni")
import("//build/config/mac/rules.gni") import("//build/config/mac/rules.gni")
import("//build/config/mac/symbols.gni") import("//build/config/mac/symbols.gni")
import("//build/mac/tweak_info_plist.gni") import("//build/mac/tweak_info_plist.gni")
...@@ -797,16 +796,6 @@ if (is_win) { ...@@ -797,16 +796,6 @@ if (is_win) {
] ]
} }
compile_entitlements("entitlements") {
entitlements_templates = [ "app/entitlements.plist" ]
output_name = "$target_gen_dir/entitlements.plist"
substitutions = [
"CHROMIUM_BUNDLE_ID=$chrome_mac_bundle_id",
"CHROMIUM_TEAM_ID=$chrome_mac_team_id",
]
visibility = [ "//chrome/installer/mac:copies" ]
}
mac_app_bundle("chrome_helper_app") { mac_app_bundle("chrome_helper_app") {
output_name = chrome_helper_name output_name = chrome_helper_name
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.application-identifier</key>
<string>${CHROMIUM_TEAM_ID}.${CHROMIUM_BUNDLE_ID}</string>
<key>keychain-access-groups</key>
<array>
<string>${CHROMIUM_TEAM_ID}.${CHROMIUM_BUNDLE_ID}.webauthn</string>
</array>
</dict>
</plist>
...@@ -7,4 +7,3 @@ PRODUCT_INSTALLER_SHORTNAME=Chromium Installer ...@@ -7,4 +7,3 @@ PRODUCT_INSTALLER_SHORTNAME=Chromium Installer
COPYRIGHT=Copyright 2017 The Chromium Authors. All rights reserved. COPYRIGHT=Copyright 2017 The Chromium Authors. All rights reserved.
MAC_BUNDLE_ID=org.chromium.Chromium MAC_BUNDLE_ID=org.chromium.Chromium
MAC_CREATOR_CODE=Cr24 MAC_CREATOR_CODE=Cr24
MAC_TEAM_ID=
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
import("//build/util/branding.gni") import("//build/util/branding.gni")
import("//build/util/version.gni") import("//build/util/version.gni")
import("//build/config/features.gni") import("//build/config/features.gni")
import("//build/config/mac/base_rules.gni")
group("mac") { group("mac") {
public_deps = [ public_deps = [
...@@ -72,7 +71,6 @@ copy("copies") { ...@@ -72,7 +71,6 @@ copy("copies") {
deps = [ deps = [
":copy_variables", ":copy_variables",
"//chrome:entitlements",
"//chrome/installer/mac/third_party/bsdiff:goobsdiff", "//chrome/installer/mac/third_party/bsdiff:goobsdiff",
"//chrome/installer/mac/third_party/bsdiff:goobspatch", "//chrome/installer/mac/third_party/bsdiff:goobspatch",
"//chrome/installer/mac/third_party/xz:lzma_decompress", "//chrome/installer/mac/third_party/xz:lzma_decompress",
...@@ -81,7 +79,6 @@ copy("copies") { ...@@ -81,7 +79,6 @@ copy("copies") {
] ]
sources = [ sources = [
"$root_gen_dir/chrome/entitlements.plist",
"$root_out_dir/goobsdiff", "$root_out_dir/goobsdiff",
"$root_out_dir/goobspatch", "$root_out_dir/goobspatch",
"$root_out_dir/liblzma_decompress.dylib", "$root_out_dir/liblzma_decompress.dylib",
...@@ -102,8 +99,6 @@ copy("copies") { ...@@ -102,8 +99,6 @@ copy("copies") {
sources += [ sources += [
"//chrome/app/theme/google_chrome/mac/app_canary.icns", "//chrome/app/theme/google_chrome/mac/app_canary.icns",
"//chrome/app/theme/google_chrome/mac/document_canary.icns", "//chrome/app/theme/google_chrome/mac/document_canary.icns",
"internal/Google_Chrome.provisionprofile",
"internal/Google_Chrome_Canary.provisionprofile",
"internal/chrome_canary_dmg_dsstore", "internal/chrome_canary_dmg_dsstore",
"internal/chrome_canary_dmg_icon.icns", "internal/chrome_canary_dmg_icon.icns",
"internal/chrome_dmg_background.png", "internal/chrome_dmg_background.png",
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# verified. Inner bundle components are expected to be signed before this # verified. Inner bundle components are expected to be signed before this
# script is called. See sign_versioned_dir.sh.in. # script is called. See sign_versioned_dir.sh.in.
set -eux set -eu
# Environment sanitization. Set a known-safe PATH. Clear environment variables # Environment sanitization. Set a known-safe PATH. Clear environment variables
# that might impact the interpreter's operation. The |bash -p| invocation # that might impact the interpreter's operation. The |bash -p| invocation
...@@ -24,20 +24,18 @@ export -n SHELLOPTS ...@@ -24,20 +24,18 @@ export -n SHELLOPTS
ME="$(basename "${0}")" ME="$(basename "${0}")"
readonly ME readonly ME
if [[ ${#} -ne 5 && ${#} -ne 6 ]]; then if [[ ${#} -ne 3 && ${#} -ne 4 ]]; then
echo "usage: ${ME} app_path codesign_keychain codesign_id \ echo "usage: ${ME} app_path codesign_keychain codesign_id \
provisioning_profile entitlements_plist [--development]" >& 2 [--development]" >& 2
exit 1 exit 1
fi fi
app_path="${1}" app_path="${1}"
codesign_keychain="${2}" codesign_keychain="${2}"
codesign_id="${3}" codesign_id="${3}"
provisioning_profile="${4}"
entitlements_plist="${5}"
is_development= is_development=
if [[ ${#} == 6 && "${6}" == "--development" ]]; then if [[ ${#} == 4 && "${4}" == "--development" ]]; then
is_development=1 is_development=1
fi fi
...@@ -47,8 +45,7 @@ source "${script_dir}/variables.sh" ...@@ -47,8 +45,7 @@ source "${script_dir}/variables.sh"
# Use custom resource rules for the browser application. # Use custom resource rules for the browser application.
browser_app_rules="${script_dir}/app_resource_rules.plist" browser_app_rules="${script_dir}/app_resource_rules.plist"
contents_dir="${app_path}/Contents" versioned_dir="${app_path}/Contents/Versions/@VERSION@"
versioned_dir="${contents_dir}/Versions/@VERSION@"
browser_app="${app_path}" browser_app="${app_path}"
framework="${versioned_dir}/@MAC_PRODUCT_NAME@ Framework.framework" framework="${versioned_dir}/@MAC_PRODUCT_NAME@ Framework.framework"
...@@ -58,9 +55,6 @@ helper_app="${versioned_dir}/@MAC_PRODUCT_NAME@ Helper.app" ...@@ -58,9 +55,6 @@ helper_app="${versioned_dir}/@MAC_PRODUCT_NAME@ Helper.app"
app_mode_loader_app="${framework}/Resources/app_mode_loader.app" app_mode_loader_app="${framework}/Resources/app_mode_loader.app"
app_mode_loader="${app_mode_loader_app}/Contents/MacOS/app_mode_loader" app_mode_loader="${app_mode_loader_app}/Contents/MacOS/app_mode_loader"
# Embed the supplied provisioning profile.
cp "${provisioning_profile}" "${contents_dir}/embedded.mobileprovision"
requirement="\ requirement="\
designated => \ designated => \
(identifier \"com.google.Chrome\" or \ (identifier \"com.google.Chrome\" or \
...@@ -75,7 +69,6 @@ codesign_cmd=( ...@@ -75,7 +69,6 @@ codesign_cmd=(
"${browser_app}" "${browser_app}"
--options "${enforcement_flags_app}" --options "${enforcement_flags_app}"
--resource-rules "${browser_app_rules}" --resource-rules "${browser_app_rules}"
--entitlements "${entitlements_plist}"
) )
if [[ -z "${is_development}" ]]; then if [[ -z "${is_development}" ]]; then
codesign_cmd+=( -r="${requirement}" ) codesign_cmd+=( -r="${requirement}" )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment