Commit 4fd6c99e authored by Jamie Walch's avatar Jamie Walch Committed by Commit Bot

Removed unused beta channel scripts.

Change-Id: I060578b0ca87d4eecd5fed2ab35fbffee6cb5aa4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1902275
Auto-Submit: Jamie Walch <jamiewalch@chromium.org>
Commit-Queue: Gary Kacmarcik <garykac@chromium.org>
Reviewed-by: default avatarGary Kacmarcik <garykac@chromium.org>
Cr-Commit-Position: refs/heads/master@{#713565}
parent 54784338
#!/bin/sh
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e -u
ME="$(basename "$0")"
readonly ME
KSADMIN=/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/MacOS/ksadmin
KSPID=com.google.chrome_remote_desktop
usage() {
echo "Usage: ${ME} <channel>" >&2
echo "where <channel> is 'beta' or 'stable'" >&2
}
log() {
local message="$1"
echo "${message}"
logger "${message}"
}
checkroot() {
if [[ "$(id -u)" != "0" ]]; then
echo "This script requires root permissions" 1>&2
exit 1
fi
}
main() {
local channel="$1"
if [[ "${channel}" != "beta" && "${channel}" != "stable" ]]; then
usage
exit 1
fi
local channeltag="${channel}"
if [[ "${channel}" == "stable" ]]; then
channeltag=""
fi
log "Switching Chrome Remote Desktop channel to ${channel}"
$KSADMIN --productid "$KSPID" --tag "${channeltag}"
if [[ "${channel}" == "stable" ]]; then
echo "You're not done yet!"
echo "You must now UNINSTALL and RE-INSTALL the latest version of Chrome"
echo "Remote Desktop to get your machine back on the stable channel."
echo "Thank you!"
else
echo "Switch to ${channel} channel complete."
echo "You will download ${channel} binaries during the next update check."
fi
}
checkroot
if [[ $# < 1 ]]; then
usage
exit 1
fi
main "$@"
@echo off
REM Copyright (c) 2012 The Chromium Authors. All rights reserved.
REM Use of this source code is governed by a BSD-style license that can be
REM found in the LICENSE file.
set CHANNEL=%1
REM Check if we are running as an Administrator.
REM Based on method described at:
REM http://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights
net session >nul 2>&1
if not %errorlevel% equ 0 (
echo This script updates the registry and needs to be run as Administrator.
echo Right-click "Command Prompt" and select "Run as Administrator" and run
echo this script from there.
goto :eof
)
REM Make sure the argument specifies a valid channel.
if "_%CHANNEL%_"=="_beta_" goto validarg
if "_%CHANNEL%_"=="_stable_" goto validarg
goto usage
:validarg
set SYSTEM32=%SystemRoot%\system32
if "_%PROCESSOR_ARCHITECTURE%_"=="_AMD64_" set SYSTEM32=%SystemRoot%\syswow64
set REGKEY="HKLM\SOFTWARE\Google\Update\ClientState\{B210701E-FFC4-49E3-932B-370728C72662}"
set VALUENAME=ap
if "_%CHANNEL%_"=="_stable_" (
%SYSTEM32%\reg.exe delete %REGKEY% /v %VALUENAME% /f
echo ********************
echo You're not done yet!
echo ********************
echo You must now UNINSTALL and RE-INSTALL the latest version of Chrome
echo Remote Desktop to get your machine back on the stable channel.
echo Thank you!
) else (
%SYSTEM32%\reg.exe add %REGKEY% /v %VALUENAME% /d %CHANNEL% /f
echo Switch to %CHANNEL% channel complete.
echo You will automatically get %CHANNEL% binaries during the next update.
)
goto :eof
:usage
echo Usage: %0 ^<channel^>
echo where ^<channel^> is 'beta' or 'stable'.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment