Browse Source

docs: Add information on packaging a build (#17086)

* docs: Add information on packaging a build

* Stripping only applies to linux
Seba Kerckhof 6 years ago
parent
commit
b7fc50b7ca
1 changed files with 12 additions and 0 deletions
  1. 12 0
      docs/development/build-instructions-gn.md

+ 12 - 0
docs/development/build-instructions-gn.md

@@ -174,6 +174,18 @@ $ ./out/Debug/electron.exe
 $ ./out/Debug/electron
 ```
 
+### Packaging
+
+On linux, first strip the debugging and symbol information:
+```sh
+electron/script/strip-binaries.py -d out/Release
+```
+
+To package the electron build as a distributable zip file:
+```sh
+ninja -C out/Release electron:electron_dist_zip
+```
+
 ### Cross-compiling
 
 To compile for a platform that isn't the same as the one you're building on,