docs: update Windows build instructions (#14797)
This commit is contained in:
parent
5e199152e2
commit
a4fefbe836
2 changed files with 28 additions and 4 deletions
|
@ -72,6 +72,9 @@ $ gclient sync --with_branch_heads --with_tags
|
|||
# This will take a while, go get a coffee.
|
||||
```
|
||||
|
||||
> Instead of `https://github.com/electron/electron`, you can use your own fork
|
||||
> here (something like `https://github.com/<username>/electron`).
|
||||
|
||||
#### A note on pulling/pushing
|
||||
|
||||
If you intend to `git pull` or `git push` from the official `electron`
|
||||
|
@ -108,6 +111,13 @@ $ export GN_EXTRA_ARGS="${GN_EXTRA_ARGS} cc_wrapper=\"${PWD}/electron/external_b
|
|||
$ gn gen out/Debug --args="import(\"//electron/build/args/debug.gn\") $GN_EXTRA_ARGS"
|
||||
```
|
||||
|
||||
Or on Windows (without the optional argument):
|
||||
```sh
|
||||
$ cd src
|
||||
$ set CHROMIUM_BUILDTOOLS_PATH=%cd%\buildtools
|
||||
$ gn gen out/Debug --args="import(\"//electron/build/args/debug.gn\")"
|
||||
```
|
||||
|
||||
This will generate a build directory `out/Debug` under `src/` with
|
||||
debug build configuration. You can replace `Debug` with another name,
|
||||
but it should be a subdirectory of `out`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue