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 # Choose which installer package to use: | 20 # Choose which installer package to use: |
21 # 'true' to use Iceberg, 'false' to use Packages. | 21 # 'true' to use Iceberg, 'false' to use Packages. |
22 # TODO(garykac) Switch completely to Packages so we can sign for 10.8. | 22 # TODO(garykac) Switch completely to Packages so we can sign for 10.8. |
23 # (crbug.com/127267) | 23 # (crbug.com/127267) |
24 USE_ICEBERG=true | 24 USE_ICEBERG=false |
25 | 25 |
26 declare -a g_cleanup_dirs | 26 declare -a g_cleanup_dirs |
27 | 27 |
28 # Binaries to sign. | 28 # Binaries to sign. |
29 ME2ME_HOST='PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app' | 29 ME2ME_HOST='PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app' |
30 UNINSTALLER='Applications/@@HOST_UNINSTALLER_NAME@@.app' | 30 UNINSTALLER='Applications/@@HOST_UNINSTALLER_NAME@@.app' |
31 | 31 |
32 # The Chromoting Host installer is a meta-package that consists of 3 | 32 # The Chromoting Host installer is a meta-package that consists of 3 |
33 # components: | 33 # components: |
34 # * Chromoting Host Service package | 34 # * Chromoting Host Service package |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 cleanup | 181 cleanup |
182 } | 182 } |
183 | 183 |
184 if [[ ${#} -ne 4 ]]; then | 184 if [[ ${#} -ne 4 ]]; then |
185 usage | 185 usage |
186 exit 1 | 186 exit 1 |
187 fi | 187 fi |
188 | 188 |
189 main "${@}" | 189 main "${@}" |
190 exit ${?} | 190 exit ${?} |
OLD | NEW |