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
5 # found in the LICENSE file.
12 KSADMIN
=/Library
/Google
/GoogleSoftwareUpdate
/GoogleSoftwareUpdate.bundle
/Contents
/MacOS
/ksadmin
13 KSPID
=com.google.chrome_remote_desktop
16 echo "Usage: ${ME} <channel>" >&2
17 echo "where <channel> is 'beta' or 'stable'" >&2
27 if [[ "$(id -u)" != "0" ]]; then
28 echo "This script requires root permissions" 1>&2
36 if [[ "${channel}" != "beta" && "${channel}" != "stable" ]]; then
41 local channeltag
="${channel}"
42 if [[ "${channel}" == "stable" ]]; then
46 log
"Switching Chrome Remote Desktop channel to ${channel}"
48 $KSADMIN --productid "$KSPID" --tag "${channeltag}"
50 if [[ "${channel}" == "stable" ]]; then
51 echo "You're not done yet!"
52 echo "You must now UNINSTALL and RE-INSTALL the latest version of Chrome"
53 echo "Remote Desktop to get your machine back on the stable channel."
56 echo "Switch to ${channel} channel complete."
57 echo "You will download ${channel} binaries during the next update check."