| OLD | NEW |
| 1 #!/bin/bash -p | 1 #!/bin/bash -p |
| 2 | 2 |
| 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 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. |
| 11 | 11 |
| 12 set -eu | 12 set -eu |
| 13 | 13 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 # Use custom resource rules for the browser application. | 36 # Use custom resource rules for the browser application. |
| 37 script_dir="$(dirname "${0}")" | 37 script_dir="$(dirname "${0}")" |
| 38 browser_app_rules="${script_dir}/app_resource_rules.plist" | 38 browser_app_rules="${script_dir}/app_resource_rules.plist" |
| 39 | 39 |
| 40 versioned_dir="${app_path}/Contents/Versions/@VERSION@" | 40 versioned_dir="${app_path}/Contents/Versions/@VERSION@" |
| 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" |
| 46 helper_np_app="${versioned_dir}/@MAC_PRODUCT_NAME@ Helper NP.app" |
| 45 | 47 |
| 46 codesign -s "${codesign_id}" --keychain "${codesign_keychain}" \ | 48 codesign -s "${codesign_id}" --keychain "${codesign_keychain}" \ |
| 47 "${browser_app}" --resource-rules "${browser_app_rules}" | 49 "${browser_app}" --resource-rules "${browser_app_rules}" |
| 48 | 50 |
| 49 # Verify everything. Check the framework and helper app to make sure that the | 51 # Verify everything. Check the framework and helper apps to make sure that the |
| 50 # signatures are present and weren't altered by the signing process. | 52 # signatures are present and weren't altered by the signing process. |
| 51 codesign -v "${framework}" | 53 codesign -v "${framework}" |
| 52 codesign -v "${helper_app}" | 54 codesign -v "${helper_app}" |
| 55 codesign -v "${helper_eh_app}" |
| 56 codesign -v "${helper_np_app}" |
| 53 codesign -v "${browser_app}" | 57 codesign -v "${browser_app}" |
| OLD | NEW |