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 ME2ME_HOST="/Library/PrivilegedHelperTools/org.chromium.chromoting.me2me_host.ap
p" | 7 ME2ME_HOST="/Library/PrivilegedHelperTools/ChromeRemoteDesktopHost.bundle" |
8 UNINSTALLER_CHROME="/Applications/Chrome Remote Desktop Host Uninstaller.app" | 8 UNINSTALLER_CHROME="/Applications/Chrome Remote Desktop Host Uninstaller.app" |
9 UNINSTALLER_CHROMIUM="/Applications/Chromoting Host Uninstaller.app" | 9 UNINSTALLER_CHROMIUM="/Applications/Chromoting Host Uninstaller.app" |
10 PREFPANE="/Library/PreferencePanes/org.chromium.chromoting.prefPane" | 10 PREFPANE="/Library/PreferencePanes/ChromeRemoteDesktop.prefPane" |
11 KEYSTONE="/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle" | 11 KEYSTONE="/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle" |
12 | 12 |
13 INFO_PLIST="Contents/Info.plist" | 13 INFO_PLIST="Contents/Info.plist" |
14 | 14 |
15 set -e -u | 15 set -e -u |
16 | 16 |
17 function print_plist_version { | 17 function print_plist_version { |
18 local name="${1}" | 18 local name="${1}" |
19 local file="${2}" | 19 local file="${2}" |
20 if [[ -e "${file}/${INFO_PLIST}" ]]; then | 20 if [[ -e "${file}/${INFO_PLIST}" ]]; then |
21 set `PlistBuddy -c 'Print CFBundleVersion' "${file}/${INFO_PLIST}"` | 21 set `PlistBuddy -c 'Print CFBundleVersion' "${file}/${INFO_PLIST}"` |
22 echo "${name}: version = ${1}" | 22 echo "${name}: version = ${1}" |
23 else | 23 else |
24 echo "${name}: plist doesn't exist" | 24 echo "${name}: plist doesn't exist" |
25 fi | 25 fi |
26 } | 26 } |
27 | 27 |
28 print_plist_version "Me2me host" "${ME2ME_HOST}" | 28 print_plist_version "Me2me host" "${ME2ME_HOST}" |
29 print_plist_version "Chrome Remote Desktop Host Uninstaller" "${UNINSTALLER_CHRO
ME}" | 29 print_plist_version "Chrome Remote Desktop Host Uninstaller" "${UNINSTALLER_CHRO
ME}" |
30 print_plist_version "Chromoting Host Uninstaller" "${UNINSTALLER_CHROMIUM}" | 30 print_plist_version "Chromoting Host Uninstaller" "${UNINSTALLER_CHROMIUM}" |
31 print_plist_version "PreferencePane" "${PREFPANE}" | 31 print_plist_version "PreferencePane" "${PREFPANE}" |
32 print_plist_version "Keystone" "${KEYSTONE}" | 32 print_plist_version "Keystone" "${KEYSTONE}" |
OLD | NEW |