refactor: add 'npm run bootstrap', 'npm run build' (#14034)
* docs: update package.json and build docs * fix build release * address feedback from review * whoops forgot one * fix build script * address feedback from review
This commit is contained in:
parent
b785f45852
commit
c0959bd534
4 changed files with 61 additions and 18 deletions
|
@ -37,23 +37,36 @@ The bootstrap script will download all necessary build dependencies and create
|
|||
the build project files. Notice that we're using `ninja` to build Electron so
|
||||
there is no Visual Studio project generated.
|
||||
|
||||
To bootstrap for a static, non-developer build, run:
|
||||
|
||||
```powershell
|
||||
$ cd electron
|
||||
$ python script\bootstrap.py -v
|
||||
$ npm run bootstrap
|
||||
```
|
||||
|
||||
Or to bootstrap for a development session that builds faster by not statically linking:
|
||||
|
||||
```powershell
|
||||
$ cd electron
|
||||
$ npm run bootstrap:dev
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
Build both Release and Debug targets:
|
||||
Build both `Release` and `Debug` targets:
|
||||
|
||||
```powershell
|
||||
$ python script\build.py
|
||||
$ npm run build
|
||||
```
|
||||
|
||||
You can also only build the Debug target:
|
||||
You can also build either the `Debug` or `Release` target on its own:
|
||||
|
||||
```powershell
|
||||
$ python script\build.py -c D
|
||||
$ npm run build:dev
|
||||
```
|
||||
|
||||
```powershell
|
||||
$ npm run build:release
|
||||
```
|
||||
|
||||
After building is done, you can find `electron.exe` under `out\D` (debug
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue