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 = {
Var('chromium_git') + '/v8/v8.git' + '@' + Var('v8_revision'),
'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',
},
......
......@@ -20,8 +20,7 @@ _branding_dictionary_template =
"bundle_id = \"@MAC_BUNDLE_ID@\" " +
"creator_code = \"@MAC_CREATOR_CODE@\" " +
"installer_full_name = \"@PRODUCT_INSTALLER_FULLNAME@\" " +
"installer_short_name = \"@PRODUCT_INSTALLER_SHORTNAME@\" " +
"team_id = \"@MAC_TEAM_ID@\" "
"installer_short_name = \"@PRODUCT_INSTALLER_SHORTNAME@\" "
_branding_file = "//chrome/app/theme/$branding_path_component/BRANDING"
_result = exec_script("version.py",
......@@ -42,5 +41,4 @@ chrome_product_installer_short_name = _result.installer_short_name
if (is_mac) {
chrome_mac_bundle_id = _result.bundle_id
chrome_mac_creator_code = _result.creator_code
chrome_mac_team_id = _result.team_id
}
......@@ -33,7 +33,6 @@ if (is_android) {
import("//build/linux/extract_symbols.gni")
} else if (is_mac) {
import("//build/compiled_action.gni")
import("//build/config/mac/base_rules.gni")
import("//build/config/mac/rules.gni")
import("//build/config/mac/symbols.gni")
import("//build/mac/tweak_info_plist.gni")
......@@ -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") {
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
COPYRIGHT=Copyright 2017 The Chromium Authors. All rights reserved.
MAC_BUNDLE_ID=org.chromium.Chromium
MAC_CREATOR_CODE=Cr24
MAC_TEAM_ID=
......@@ -5,7 +5,6 @@
import("//build/util/branding.gni")
import("//build/util/version.gni")
import("//build/config/features.gni")
import("//build/config/mac/base_rules.gni")
group("mac") {
public_deps = [
......@@ -72,7 +71,6 @@ copy("copies") {
deps = [
":copy_variables",
"//chrome:entitlements",
"//chrome/installer/mac/third_party/bsdiff:goobsdiff",
"//chrome/installer/mac/third_party/bsdiff:goobspatch",
"//chrome/installer/mac/third_party/xz:lzma_decompress",
......@@ -81,7 +79,6 @@ copy("copies") {
]
sources = [
"$root_gen_dir/chrome/entitlements.plist",
"$root_out_dir/goobsdiff",
"$root_out_dir/goobspatch",
"$root_out_dir/liblzma_decompress.dylib",
......@@ -102,8 +99,6 @@ copy("copies") {
sources += [
"//chrome/app/theme/google_chrome/mac/app_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_icon.icns",
"internal/chrome_dmg_background.png",
......
......@@ -9,7 +9,7 @@
# verified. Inner bundle components are expected to be signed before this
# script is called. See sign_versioned_dir.sh.in.
set -eux
set -eu
# Environment sanitization. Set a known-safe PATH. Clear environment variables
# that might impact the interpreter's operation. The |bash -p| invocation
......@@ -24,20 +24,18 @@ export -n SHELLOPTS
ME="$(basename "${0}")"
readonly ME
if [[ ${#} -ne 5 && ${#} -ne 6 ]]; then
if [[ ${#} -ne 3 && ${#} -ne 4 ]]; then
echo "usage: ${ME} app_path codesign_keychain codesign_id \
provisioning_profile entitlements_plist [--development]" >& 2
[--development]" >& 2
exit 1
fi
app_path="${1}"
codesign_keychain="${2}"
codesign_id="${3}"
provisioning_profile="${4}"
entitlements_plist="${5}"
is_development=
if [[ ${#} == 6 && "${6}" == "--development" ]]; then
if [[ ${#} == 4 && "${4}" == "--development" ]]; then
is_development=1
fi
......@@ -47,8 +45,7 @@ source "${script_dir}/variables.sh"
# Use custom resource rules for the browser application.
browser_app_rules="${script_dir}/app_resource_rules.plist"
contents_dir="${app_path}/Contents"
versioned_dir="${contents_dir}/Versions/@VERSION@"
versioned_dir="${app_path}/Contents/Versions/@VERSION@"
browser_app="${app_path}"
framework="${versioned_dir}/@MAC_PRODUCT_NAME@ Framework.framework"
......@@ -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_mode_loader_app}/Contents/MacOS/app_mode_loader"
# Embed the supplied provisioning profile.
cp "${provisioning_profile}" "${contents_dir}/embedded.mobileprovision"
requirement="\
designated => \
(identifier \"com.google.Chrome\" or \
......@@ -75,7 +69,6 @@ codesign_cmd=(
"${browser_app}"
--options "${enforcement_flags_app}"
--resource-rules "${browser_app_rules}"
--entitlements "${entitlements_plist}"
)
if [[ -z "${is_development}" ]]; then
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