| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 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 # This script signs the Chromoting binaries, builds the Chrome Remote Desktop | 7 # This script signs the Chromoting binaries, builds the Chrome Remote Desktop |
| 8 # installer and then packages it into a .dmg. It requires that Iceberg be | 8 # installer and then packages it into a .dmg. It requires that Iceberg be |
| 9 # installed (for 'freeze'). | 9 # installed (for 'freeze'). |
| 10 # | 10 # |
| 11 # usage: sign_and_build.sh output_dir input_dir codesign_keychain codesign_id | 11 # usage: sign_and_build.sh output_dir input_dir codesign_keychain codesign_id |
| 12 # | 12 # |
| 13 # The final disk image (dmg) is placed in |output_dir|. | 13 # The final disk image (dmg) is placed in |output_dir|. |
| 14 | 14 |
| 15 set -e -u | 15 set -e -u |
| 16 | 16 |
| 17 ME="$(basename "${0}")" | 17 ME="$(basename "${0}")" |
| 18 readonly ME | 18 readonly ME |
| 19 | 19 |
| 20 declare -a g_cleanup_dirs | 20 declare -a g_cleanup_dirs |
| 21 | 21 |
| 22 # Binaries to sign. | 22 # Binaries to sign. |
| 23 ME2ME_HOST='PrivilegedHelperTools/org.chromium.chromoting.me2me_host' | 23 ME2ME_HOST='PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app' |
| 24 UNINSTALLER='Applications/@@HOST_UNINSTALLER_NAME@@.app' | 24 UNINSTALLER='Applications/@@HOST_UNINSTALLER_NAME@@.app' |
| 25 | 25 |
| 26 # The Chromoting Host installer is a meta-package that consists of 3 | 26 # The Chromoting Host installer is a meta-package that consists of 3 |
| 27 # components: | 27 # components: |
| 28 # * Chromoting Host Service package | 28 # * Chromoting Host Service package |
| 29 # * Chromoting Host Uninstaller package | 29 # * Chromoting Host Uninstaller package |
| 30 # * Keystone package(GoogleSoftwareUpdate - for Official builds only) | 30 # * Keystone package(GoogleSoftwareUpdate - for Official builds only) |
| 31 PKGPROJ_HOST='ChromotingHost.packproj' | 31 PKGPROJ_HOST='ChromotingHost.packproj' |
| 32 PKGPROJ_HOST_SERVICE='ChromotingHostService.packproj' | 32 PKGPROJ_HOST_SERVICE='ChromotingHostService.packproj' |
| 33 PKGPROJ_HOST_UNINSTALLER='ChromotingHostUninstaller.packproj' | 33 PKGPROJ_HOST_UNINSTALLER='ChromotingHostUninstaller.packproj' |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 cleanup | 164 cleanup |
| 165 } | 165 } |
| 166 | 166 |
| 167 if [[ ${#} -ne 4 ]]; then | 167 if [[ ${#} -ne 4 ]]; then |
| 168 usage | 168 usage |
| 169 exit 1 | 169 exit 1 |
| 170 fi | 170 fi |
| 171 | 171 |
| 172 main "${@}" | 172 main "${@}" |
| 173 exit ${?} | 173 exit ${?} |
| OLD | NEW |