Updater: Add KS_TICKET_SERVER_URL to the installer environment on macOS.
Some installers are sensitive to its presence. Bug: 1441052 Change-Id: I84de4f403158466a2991a28b69317333dad3ad4c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4490524 Commit-Queue: Joshua Pawlicki <waffles@chromium.org> Reviewed-by: Xiaoling Bao <xiaolingbao@chromium.org> Commit-Queue: Xiaoling Bao <xiaolingbao@chromium.org> Auto-Submit: Joshua Pawlicki <waffles@chromium.org> Cr-Commit-Position: refs/heads/main@{#1137285}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
07565ad8ca
commit
6572b11b02
@ -34,6 +34,7 @@
|
||||
#include "base/time/time.h"
|
||||
#include "base/version.h"
|
||||
#include "chrome/updater/constants.h"
|
||||
#include "chrome/updater/updater_branding.h"
|
||||
#include "chrome/updater/updater_scope.h"
|
||||
#include "chrome/updater/util/mac_util.h"
|
||||
#include "chrome/updater/util/util.h"
|
||||
@ -189,6 +190,7 @@ int RunExecutable(const base::FilePath& existence_checker_path,
|
||||
options.clear_environment = true;
|
||||
options.environment = {
|
||||
{"KS_TICKET_AP", ap},
|
||||
{"KS_TICKET_SERVER_URL", UPDATE_CHECK_URL},
|
||||
{"KS_TICKET_XC_PATH", existence_checker_path.value()},
|
||||
{"PATH", env_path},
|
||||
{"PREVIOUS_VERSION", pv.GetString()},
|
||||
|
@ -30,6 +30,8 @@ environment variables:
|
||||
|
||||
- `KS_TICKET_AP`: The ap value of the currently-installed version of the app.
|
||||
(Note: "ap" was called "tag" in Keystone.)
|
||||
- `KS_TICKET_SERVER_URL`: The URL used for update-checking with the server,
|
||||
regardless of what was in the Keystone ticket.
|
||||
- `KS_TICKET_XC_PATH`: The absolute path to the installation of the app, based
|
||||
on its existence-checker value.
|
||||
- `PATH`: '/bin:/usr/bin:/Path/To/ksadmin'.
|
||||
|
Reference in New Issue
Block a user