docs(dev-infra): fix command and typos in `browsers/README.md` (#40150)
This commit fixes the instructions in `dev-infra/browsers/README.md` to use the `shasum` executable (instead of `sha256`, which does not exist afaict). The commit also fixes a couple of typos. PR Close #40150
This commit is contained in:
parent
3aead9a95c
commit
be48ad28ea
|
@ -34,7 +34,7 @@ The process of updating the Chrome or Firefox version is not straightforward, bu
|
||||||
Chromium 83.0.4103.0
|
Chromium 83.0.4103.0
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Update the chrome & chrome driver build numbers in `dev-infra/browsers/chromium/chromium.bzl` and run either run `bazel query @org_chromium_chromium_amd64//...` to prompt Bazel to calculate the new `sha256` for each platform binary or determine the new `sha256` values manually.
|
3. Update the chrome & chrome driver build numbers in `dev-infra/browsers/chromium/chromium.bzl` and either run `bazel query @org_chromium_chromium_amd64//...` to prompt Bazel to calculate the new `sha256` for each platform binary or determine the new `sha256` values manually.
|
||||||
|
|
||||||
Here is an example with `curl` & `shasum`:
|
Here is an example with `curl` & `shasum`:
|
||||||
``` bash
|
``` bash
|
||||||
|
@ -55,7 +55,7 @@ and their corresponding `yarn.lock` files.
|
||||||
## Firefox
|
## Firefox
|
||||||
|
|
||||||
In order to update Firefox, open the `dev-infra/browsers/firefox/firefox.bzl` file and update the repository URLs to the desired version.
|
In order to update Firefox, open the `dev-infra/browsers/firefox/firefox.bzl` file and update the repository URLs to the desired version.
|
||||||
e.g.
|
For example:
|
||||||
|
|
||||||
```bzl
|
```bzl
|
||||||
platform_http_file(
|
platform_http_file(
|
||||||
|
@ -67,8 +67,11 @@ platform_http_file(
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
Go to the `urls` property and update the URL by replacing all `78.0` occurrences with the version you intend to use.
|
1. Go to the `urls` property and update the URL by replacing all `78.0` occurrences with the version you intend to use.
|
||||||
Once done, do the same change for other platforms (such as `macos`).
|
Once done, do the same change for other platforms (such as `macos`).
|
||||||
|
|
||||||
Finally, update the `sha256` checksum of the browser archives.
|
2. Update the `sha256` checksum of the browser archives.
|
||||||
You can do this by downloading the artifacts from the URLs you just updated, and then running on those files: `sha256 <path>`.
|
You can do this by downloading the artifacts from the URLs you just updated, and then running `shasum` on those files:
|
||||||
|
```sh
|
||||||
|
curl <BROWSER_URL> | sha256 -a 256
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue