Skip to content

Commit d196486

Browse files
authored
Merge pull request electron#8652 from electron/no-api-docs-generation
create-dist: Adding argument to supress api docs generation.
2 parents 637bdc2 + 19d7f07 commit d196486

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

script/create-dist.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22

3+
import argparse
34
import glob
45
import os
56
import re
@@ -87,7 +88,9 @@ def main():
8788
copy_chrome_binary('mksnapshot')
8889
copy_license()
8990

90-
if PLATFORM != 'win32':
91+
args = parse_args()
92+
93+
if PLATFORM != 'win32' and not args.no_api_docs:
9194
create_api_json_schema()
9295

9396
if PLATFORM == 'linux':
@@ -242,5 +245,13 @@ def create_symbols_zip():
242245
make_zip(os.path.join(DIST_DIR, pdb_name), pdbs + licenses, [])
243246

244247

248+
def parse_args():
249+
parser = argparse.ArgumentParser(description='Create Electron Distribution')
250+
parser.add_argument('--no_api_docs',
251+
action='store_true',
252+
help='Skip generating the Electron API Documentation!')
253+
return parser.parse_args()
254+
255+
245256
if __name__ == '__main__':
246257
sys.exit(main())

0 commit comments

Comments
 (0)