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

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

Issue 209043004: Revert 259287 "Add breakpad support for me2me and it2me native m..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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")
33 DMG_VOLUME_NAME=$(read_property "DMG_VOLUME_NAME") 35 DMG_VOLUME_NAME=$(read_property "DMG_VOLUME_NAME")
34 DMG_FILE_NAME=$(read_property "DMG_FILE_NAME") 36 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")
43 37
44 # Binaries to sign. 38 # Binaries to sign.
45 ME2ME_HOST="PrivilegedHelperTools/${HOST_BUNDLE_NAME}" 39 ME2ME_HOST='PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app'
46 ME2ME_NM_HOST="PrivilegedHelperTools/${HOST_BUNDLE_NAME}/Contents/MacOS/"` 40 ME2ME_NM_HOST="${ME2ME_HOST}/Contents/MacOS/native_messaging_host"
47 `"${NATIVE_MESSAGING_HOST_BUNDLE_NAME}/Contents/MacOS/"` 41 IT2ME_NM_HOST="${ME2ME_HOST}/Contents/MacOS/remote_assistance_host"
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"
52 UNINSTALLER="Applications/${HOST_UNINSTALLER_NAME}.app" 42 UNINSTALLER="Applications/${HOST_UNINSTALLER_NAME}.app"
53 PREFPANE="PreferencePanes/${PREFPANE_BUNDLE_NAME}" 43 PREFPANE='PreferencePanes/org.chromium.chromoting.prefPane'
54 44
55 # The Chromoting Host installer is a meta-package that consists of 3 45 # The Chromoting Host installer is a meta-package that consists of 3
56 # components: 46 # components:
57 # * Chromoting Host Service package 47 # * Chromoting Host Service package
58 # * Chromoting Host Uninstaller package 48 # * Chromoting Host Uninstaller package
59 # * Keystone package (GoogleSoftwareUpdate - for Official builds only) 49 # * Keystone package (GoogleSoftwareUpdate - for Official builds only)
60 PKGPROJ_HOST="ChromotingHost.pkgproj" 50 PKGPROJ_HOST='ChromotingHost.pkgproj'
61 PKGPROJ_HOST_SERVICE="ChromotingHostService.pkgproj" 51 PKGPROJ_HOST_SERVICE='ChromotingHostService.pkgproj'
62 PKGPROJ_HOST_UNINSTALLER="ChromotingHostUninstaller.pkgproj" 52 PKGPROJ_HOST_UNINSTALLER='ChromotingHostUninstaller.pkgproj'
63 53
64 # Final (user-visible) pkg name. 54 # Final (user-visible) pkg name.
65 PKG_FINAL="${HOST_PKG}.pkg" 55 PKG_FINAL="${HOST_PKG}.pkg"
66 56
67 DMG_FILE_NAME="${DMG_FILE_NAME}.dmg" 57 DMG_FILE_NAME="${DMG_FILE_NAME}.dmg"
68 58
69 # Temp directory for Packages output. 59 # Temp directory for Packages output.
70 PKG_DIR=build 60 PKG_DIR=build
71 g_cleanup_dirs+=("${PKG_DIR}") 61 g_cleanup_dirs+=("${PKG_DIR}")
72 62
(...skipping 23 matching lines...) Expand all
96 echo "./${path}" 86 echo "./${path}"
97 else 87 else
98 echo "${path}" 88 echo "${path}"
99 fi 89 fi
100 } 90 }
101 91
102 # Read a single property from the properties file. 92 # Read a single property from the properties file.
103 read_property() { 93 read_property() {
104 local property="${1}" 94 local property="${1}"
105 local filename="${PROPS_FILENAME}" 95 local filename="${PROPS_FILENAME}"
106 echo `grep "\<${property}\>=" "${filename}" | tail -n 1 | cut -d "=" -f2-` 96 echo `grep "${property}" "${filename}" | tail -n 1 | cut -d "=" -f2-`
107 } 97 }
108 98
109 verify_clean_dir() { 99 verify_clean_dir() {
110 local dir="${1}" 100 local dir="${1}"
111 if [[ ! -d "${dir}" ]]; then 101 if [[ ! -d "${dir}" ]]; then
112 mkdir "${dir}" 102 mkdir "${dir}"
113 fi 103 fi
114 104
115 if [[ -e "${output_dir}/${DMG_FILE_NAME}" ]]; then 105 if [[ -e "${output_dir}/${DMG_FILE_NAME}" ]]; then
116 err "Output directory is dirty from previous build." 106 err "Output directory is dirty from previous build."
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 cleanup 235 cleanup
246 } 236 }
247 237
248 if [[ ${#} < 2 ]]; then 238 if [[ ${#} < 2 ]]; then
249 usage 239 usage
250 exit 1 240 exit 1
251 fi 241 fi
252 242
253 main "${@}" 243 main "${@}"
254 exit ${?} 244 exit ${?}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698