Update how to rebrand from source, close #1999

This commit is contained in:
Cheng Zhao 2015-06-18 12:59:13 +08:00
parent f76b60f295
commit beb2853bbf

View file

@ -106,26 +106,8 @@ You can rename the `electron` executable to any name you like.
## Rebranding by rebuilding Electron from source ## Rebranding by rebuilding Electron from source
It is also possible to rebrand Electron by changing the product name and It is also possible to rebrand Electron by changing the product name and
building it from source. To do this you need to override the `GYP_DEFINES` building it from source. To do this you need to modify the `atom.gyp` file and
environment variable and have a clean rebuild: have a clean rebuild.
__Windows__
```bash
> set "GYP_DEFINES=project_name=myapp product_name=MyApp"
> python script\clean.py
> python script\bootstrap.py
> python script\build.py -c R -t myapp
```
__Bash__
```bash
$ export GYP_DEFINES="project_name=myapp product_name=MyApp"
$ script/clean.py
$ script/bootstrap.py
$ script/build.py -c Release -t myapp
```
### grunt-build-atom-shell ### grunt-build-atom-shell