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 # This is expected to be invoked by the Pulse build step. It takes care of | 7 # This is expected to be invoked by the Pulse build step. It takes care of |
8 # doing the code signing and building the needed disk images. All needed | 8 # doing the code signing and building the needed disk images. All needed |
9 # support files are assumed to live next to this script on disk. | 9 # support files are assumed to live next to this script on disk. |
10 # | 10 # |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 --target "${dmg_path}" \ | 371 --target "${dmg_path}" \ |
372 --format UDBZ \ | 372 --format UDBZ \ |
373 --volname "${product_name}" \ | 373 --volname "${product_name}" \ |
374 --icon "${PACKAGING_DIR}/${icon_name}" \ | 374 --icon "${PACKAGING_DIR}/${icon_name}" \ |
375 --copy "${variant_app_path}/:/${app_name}" \ | 375 --copy "${variant_app_path}/:/${app_name}" \ |
376 --copy "${PACKAGING_DIR}/keystone_install.sh:/.keystone_install" \ | 376 --copy "${PACKAGING_DIR}/keystone_install.sh:/.keystone_install" \ |
377 --mkdir "/.background" \ | 377 --mkdir "/.background" \ |
378 --copy \ | 378 --copy \ |
379 "${PACKAGING_DIR}/chrome_dmg_background.png:/.background/background.png" \ | 379 "${PACKAGING_DIR}/chrome_dmg_background.png:/.background/background.png" \ |
380 --copy "${PACKAGING_DIR}/${dsstore_name}:/.DS_Store" \ | 380 --copy "${PACKAGING_DIR}/${dsstore_name}:/.DS_Store" \ |
381 --symlink "/Applications:/ " \ | 381 --symlink "/Applications:/ " |
382 --mkdir "/.keychain_reauthorize" \ | |
383 --copy \ | |
384 "${PACKAGING_DIR}/.keychain_reauthorize/${app_bundle_id_new}:/.keychain_reauthor
ize/${app_bundle_id_new}" | |
385 | 382 |
386 rmdir "${empty_dir}" | 383 rmdir "${empty_dir}" |
387 rm -rf "${variant_dir}" | 384 rm -rf "${variant_dir}" |
388 } | 385 } |
389 | 386 |
390 # shell_safe_path ensures that |path| is safe to pass to tools as a | 387 # shell_safe_path ensures that |path| is safe to pass to tools as a |
391 # command-line argument. If the first character in |path| is "-", "./" is | 388 # command-line argument. If the first character in |path| is "-", "./" is |
392 # prepended to it. The possibily-modified |path| is output. | 389 # prepended to it. The possibily-modified |path| is output. |
393 shell_safe_path() { | 390 shell_safe_path() { |
394 local path="${1}" | 391 local path="${1}" |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 # arguments. This script's caller may be upgraded to provide more arguments | 701 # arguments. This script's caller may be upgraded to provide more arguments |
705 # to future versions of this script, but if this version runs, it should be | 702 # to future versions of this script, but if this version runs, it should be |
706 # able to operate with only the arguments it needs. | 703 # able to operate with only the arguments it needs. |
707 if [[ ${#} -lt 5 ]]; then | 704 if [[ ${#} -lt 5 ]]; then |
708 usage | 705 usage |
709 exit 1 | 706 exit 1 |
710 fi | 707 fi |
711 | 708 |
712 main "${@}" | 709 main "${@}" |
713 exit ${?} | 710 exit ${?} |
OLD | NEW |