Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: remoting/host/installer/mac/do_signing.sh

Issue 186763004: Add breakpad support for me2me and it2me native messaging host on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Linux build break in Official Chrome build. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 Packages be 8 # installer and then packages it into a .dmg. It requires that Packages be
9 # installed (for 'packagesbuild'). 9 # installed (for 'packagesbuild').
10 # Packages: http://s.sudre.free.fr/Software/Packages/about.html 10 # Packages: http://s.sudre.free.fr/Software/Packages/about.html
(...skipping 12 matching lines...) Expand all
23 23
24 setup() { 24 setup() {
25 local input_dir="${1}" 25 local input_dir="${1}"
26 26
27 # The file that contains the properties for this signing build. 27 # The file that contains the properties for this signing build.
28 # The file should contain only key=value pairs, one per line. 28 # The file should contain only key=value pairs, one per line.
29 PROPS_FILENAME="${input_dir}/do_signing.props" 29 PROPS_FILENAME="${input_dir}/do_signing.props"
30 30
31 # Individually load the properties for this build. Don't 'source' the file 31 # Individually load the properties for this build. Don't 'source' the file
32 # to guard against code accidentally being added to the props file. 32 # to guard against code accidentally being added to the props file.
33 HOST_UNINSTALLER_NAME=$(read_property "HOST_UNINSTALLER_NAME")
34 HOST_PKG=$(read_property "HOST_PKG")
35 DMG_VOLUME_NAME=$(read_property "DMG_VOLUME_NAME") 33 DMG_VOLUME_NAME=$(read_property "DMG_VOLUME_NAME")
36 DMG_FILE_NAME=$(read_property "DMG_FILE_NAME") 34 DMG_FILE_NAME=$(read_property "DMG_FILE_NAME")
35 HOST_BUNDLE_NAME=$(read_property "HOST_BUNDLE_NAME")
36 HOST_PKG=$(read_property "HOST_PKG")
37 HOST_UNINSTALLER_NAME=$(read_property "HOST_UNINSTALLER_NAME")
38 NATIVE_MESSAGING_HOST_BUNDLE_NAME=$(read_property\
39 "NATIVE_MESSAGING_HOST_BUNDLE_NAME")
40 PREFPANE_BUNDLE_NAME=$(read_property "PREFPANE_BUNDLE_NAME")
41 REMOTE_ASSISTANCE_HOST_BUNDLE_NAME=$(read_property\
42 "REMOTE_ASSISTANCE_HOST_BUNDLE_NAME")
37 43
38 # Binaries to sign. 44 # Binaries to sign.
39 ME2ME_HOST='PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app' 45 ME2ME_HOST="PrivilegedHelperTools/${HOST_BUNDLE_NAME}"
40 ME2ME_NM_HOST="${ME2ME_HOST}/Contents/MacOS/native_messaging_host" 46 ME2ME_NM_HOST="PrivilegedHelperTools/${HOST_BUNDLE_NAME}/Contents/MacOS/"`
41 IT2ME_NM_HOST="${ME2ME_HOST}/Contents/MacOS/remote_assistance_host" 47 `"${NATIVE_MESSAGING_HOST_BUNDLE_NAME}/Contents/MacOS/"`
48 `"native_messaging_host"
49 IT2ME_NM_HOST="PrivilegedHelperTools/${HOST_BUNDLE_NAME}/Contents/MacOS/"`
50 `"${REMOTE_ASSISTANCE_HOST_BUNDLE_NAME}/Contents/MacOS/"`
51 `"remote_assistance_host"
42 UNINSTALLER="Applications/${HOST_UNINSTALLER_NAME}.app" 52 UNINSTALLER="Applications/${HOST_UNINSTALLER_NAME}.app"
43 PREFPANE='PreferencePanes/org.chromium.chromoting.prefPane' 53 PREFPANE="PreferencePanes/${PREFPANE_BUNDLE_NAME}"
44 54
45 # The Chromoting Host installer is a meta-package that consists of 3 55 # The Chromoting Host installer is a meta-package that consists of 3
46 # components: 56 # components:
47 # * Chromoting Host Service package 57 # * Chromoting Host Service package
48 # * Chromoting Host Uninstaller package 58 # * Chromoting Host Uninstaller package
49 # * Keystone package (GoogleSoftwareUpdate - for Official builds only) 59 # * Keystone package (GoogleSoftwareUpdate - for Official builds only)
50 PKGPROJ_HOST='ChromotingHost.pkgproj' 60 PKGPROJ_HOST="ChromotingHost.pkgproj"
51 PKGPROJ_HOST_SERVICE='ChromotingHostService.pkgproj' 61 PKGPROJ_HOST_SERVICE="ChromotingHostService.pkgproj"
52 PKGPROJ_HOST_UNINSTALLER='ChromotingHostUninstaller.pkgproj' 62 PKGPROJ_HOST_UNINSTALLER="ChromotingHostUninstaller.pkgproj"
53 63
54 # Final (user-visible) pkg name. 64 # Final (user-visible) pkg name.
55 PKG_FINAL="${HOST_PKG}.pkg" 65 PKG_FINAL="${HOST_PKG}.pkg"
56 66
57 DMG_FILE_NAME="${DMG_FILE_NAME}.dmg" 67 DMG_FILE_NAME="${DMG_FILE_NAME}.dmg"
58 68
59 # Temp directory for Packages output. 69 # Temp directory for Packages output.
60 PKG_DIR=build 70 PKG_DIR=build
61 g_cleanup_dirs+=("${PKG_DIR}") 71 g_cleanup_dirs+=("${PKG_DIR}")
62 72
(...skipping 23 matching lines...) Expand all
86 echo "./${path}" 96 echo "./${path}"
87 else 97 else
88 echo "${path}" 98 echo "${path}"
89 fi 99 fi
90 } 100 }
91 101
92 # Read a single property from the properties file. 102 # Read a single property from the properties file.
93 read_property() { 103 read_property() {
94 local property="${1}" 104 local property="${1}"
95 local filename="${PROPS_FILENAME}" 105 local filename="${PROPS_FILENAME}"
96 echo `grep "${property}" "${filename}" | tail -n 1 | cut -d "=" -f2-` 106 echo `grep "\<${property}\>=" "${filename}" | tail -n 1 | cut -d "=" -f2-`
97 } 107 }
98 108
99 verify_clean_dir() { 109 verify_clean_dir() {
100 local dir="${1}" 110 local dir="${1}"
101 if [[ ! -d "${dir}" ]]; then 111 if [[ ! -d "${dir}" ]]; then
102 mkdir "${dir}" 112 mkdir "${dir}"
103 fi 113 fi
104 114
105 if [[ -e "${output_dir}/${DMG_FILE_NAME}" ]]; then 115 if [[ -e "${output_dir}/${DMG_FILE_NAME}" ]]; then
106 err "Output directory is dirty from previous build." 116 err "Output directory is dirty from previous build."
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 cleanup 245 cleanup
236 } 246 }
237 247
238 if [[ ${#} < 2 ]]; then 248 if [[ ${#} < 2 ]]; then
239 usage 249 usage
240 exit 1 250 exit 1
241 fi 251 fi
242 252
243 main "${@}" 253 main "${@}"
244 exit ${?} 254 exit ${?}
OLDNEW
« no previous file with comments | « remoting/host/installer/mac/do_signing.props ('k') | remoting/host/it2me/remote_assistance_host-Info.plist » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698