0

mac: suggest caffeinate instead of system settings to prevent sleep

Change-Id: Ie0ca5fb4c136650d121eaa04738874c6c1ae4752
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3448211
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#968336}
This commit is contained in:
David Sanders
2022-02-08 15:48:56 +00:00
committed by Chromium LUCI CQ
parent a3a30e1ff0
commit e382717cae

@ -57,11 +57,6 @@ $ export PATH="$PATH:/path/to/depot_tools"
## Get the code
In System Preferences, check that "Energy Saver" -> "Power Adapter" ->
"Prevent computer from sleeping automatically when the display is off" is
checked so that your laptop doesn't go to sleep and interrupt the long network
connection needed here.
Create a `chromium` directory for the checkout and change to it (you can call
this whatever you like and put it wherever you like, as long as the full path
has no spaces):
@ -74,9 +69,13 @@ Run the `fetch` tool from `depot_tools` to check out the code and its
dependencies.
```shell
$ fetch chromium
$ caffeinate fetch chromium
```
Running the `fetch` with `caffeinate` is optional, but it will prevent the
system from sleeping for the duration of the `fetch` command, which may run for
a considerable amount of time.
If you don't need the full repo history, you can save time by using
`fetch --no-history chromium`. You can call `git fetch --unshallow` to retrieve
the full history later.