OLD | NEW |
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 contents of the versioned directory. Namely, this | 7 # Using codesign, sign the contents of the versioned directory. Namely, this |
8 # includes the framework and helper app. After signing, the signatures are | 8 # includes the framework and helper app. After signing, the signatures are |
9 # verified. | 9 # verified. |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 if [[ ${#} -ne 3 ]]; then | 26 if [[ ${#} -ne 3 ]]; then |
27 echo "usage: ${ME} app_path codesign_keychain codesign_id" >& 2 | 27 echo "usage: ${ME} app_path codesign_keychain codesign_id" >& 2 |
28 exit 1 | 28 exit 1 |
29 fi | 29 fi |
30 | 30 |
31 app_path="${1}" | 31 app_path="${1}" |
32 codesign_keychain="${2}" | 32 codesign_keychain="${2}" |
33 codesign_id="${3}" | 33 codesign_id="${3}" |
34 | 34 |
35 versioned_dir="${app_path}/Contents/Versions/34.0.1800.0" | 35 versioned_dir="${app_path}/Contents/Versions/35.0.1916.114" |
36 | 36 |
37 # An .app bundle to be signed can be signed directly. Normally, signing a | 37 # An .app bundle to be signed can be signed directly. Normally, signing a |
38 # framework bundle requires that each version within be signed individually. | 38 # framework bundle requires that each version within be signed individually. |
39 # http://developer.apple.com/mac/library/technotes/tn2007/tn2206.html#TNTAG13 | 39 # http://developer.apple.com/mac/library/technotes/tn2007/tn2206.html#TNTAG13 |
40 # In Chrome's case, the framework bundle is unversioned, so it too can be | 40 # In Chrome's case, the framework bundle is unversioned, so it too can be |
41 # signed directly. See copy_framework_unversioned.sh. | 41 # signed directly. See copy_framework_unversioned.sh. |
42 | 42 |
43 framework="${versioned_dir}/Google Chrome Framework.framework" | 43 framework="${versioned_dir}/Google Chrome Framework.framework" |
44 helper_app="${versioned_dir}/Google Chrome Helper.app" | 44 helper_app="${versioned_dir}/Google Chrome Helper.app" |
45 helper_eh_app="${versioned_dir}/Google Chrome Helper EH.app" | 45 helper_eh_app="${versioned_dir}/Google Chrome Helper EH.app" |
(...skipping 16 matching lines...) Expand all Loading... |
62 codesign -s "${codesign_id}" --keychain "${codesign_keychain}" \ | 62 codesign -s "${codesign_id}" --keychain "${codesign_keychain}" \ |
63 "${helper_np_app}" \ | 63 "${helper_np_app}" \ |
64 -r="designated => identifier \"com.google.Chrome.helper.NP\" \ | 64 -r="designated => identifier \"com.google.Chrome.helper.NP\" \ |
65 ${requirement_suffix}" | 65 ${requirement_suffix}" |
66 | 66 |
67 # Verify everything. | 67 # Verify everything. |
68 codesign -v "${framework}" | 68 codesign -v "${framework}" |
69 codesign -v "${helper_app}" | 69 codesign -v "${helper_app}" |
70 codesign -v "${helper_eh_app}" | 70 codesign -v "${helper_eh_app}" |
71 codesign -v "${helper_np_app}" | 71 codesign -v "${helper_np_app}" |
OLD | NEW |