Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Side by Side Diff: chrome/installer/mac/sign_app.sh.in

Issue 10534027: Sign Chrome with the new Apple Developer ID certificate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« chrome/chrome_installer.gypi ('K') | « chrome/chrome_installer.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash -p 1 #!/bin/bash -p
2 2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Using codesign, sign the application. After signing, the signatures on the 7 # Using codesign, sign the application. After signing, the signatures on the
8 # inner bundle components are verified, and the application's own signature is 8 # inner bundle components are verified, and the application's own signature is
9 # verified. Inner bundle components are expected to be signed before this 9 # verified. Inner bundle components are expected to be signed before this
10 # script is called. See sign_versioned_dir.sh. 10 # script is called. See sign_versioned_dir.sh.
(...skipping 30 matching lines...) Expand all
41 41
42 browser_app="${app_path}" 42 browser_app="${app_path}"
43 framework="${versioned_dir}/@MAC_PRODUCT_NAME@ Framework.framework" 43 framework="${versioned_dir}/@MAC_PRODUCT_NAME@ Framework.framework"
44 helper_app="${versioned_dir}/@MAC_PRODUCT_NAME@ Helper.app" 44 helper_app="${versioned_dir}/@MAC_PRODUCT_NAME@ Helper.app"
45 helper_eh_app="${versioned_dir}/@MAC_PRODUCT_NAME@ Helper EH.app" 45 helper_eh_app="${versioned_dir}/@MAC_PRODUCT_NAME@ Helper EH.app"
46 helper_np_app="${versioned_dir}/@MAC_PRODUCT_NAME@ Helper NP.app" 46 helper_np_app="${versioned_dir}/@MAC_PRODUCT_NAME@ Helper NP.app"
47 47
48 requirement_string="\ 48 requirement_string="\
49 designated => \ 49 designated => \
50 (identifier \"com.google.Chrome\" or identifier \"com.google.Chrome.canary\") \ 50 (identifier \"com.google.Chrome\" or identifier \"com.google.Chrome.canary\") \
51 and (certificate leaf = H\"85cee8254216185620ddc8851c7a9fc4dfe120ef\" or \ 51 and certificate leaf = H\"85cee8254216185620ddc8851c7a9fc4dfe120ef\"\
52 certificate leaf = H\"9481882581d8178db8b1649c0eaa4f9eb11288f0\")\
53 " 52 "
54 53
55 codesign -s "${codesign_id}" --keychain "${codesign_keychain}" \ 54 codesign -s "${codesign_id}" --keychain "${codesign_keychain}" \
56 "${browser_app}" --resource-rules "${browser_app_rules}" \ 55 "${browser_app}" --resource-rules "${browser_app_rules}" \
57 -r="${requirement_string}" 56 -r="${requirement_string}"
58 57
59 # Verify everything. Check the framework and helper apps to make sure that the 58 # Verify everything. Check the framework and helper apps to make sure that the
60 # signatures are present and weren't altered by the signing process. 59 # signatures are present and weren't altered by the signing process.
61 codesign -v "${framework}" 60 codesign -v "${framework}"
62 codesign -v "${helper_app}" 61 codesign -v "${helper_app}"
63 codesign -v "${helper_eh_app}" 62 codesign -v "${helper_eh_app}"
64 codesign -v "${helper_np_app}" 63 codesign -v "${helper_np_app}"
65 codesign -v "${browser_app}" 64 codesign -v "${browser_app}"
OLDNEW
« chrome/chrome_installer.gypi ('K') | « chrome/chrome_installer.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698