Merge pull request #8652 from electron/no-api-docs-generation

create-dist: Adding argument to supress api docs generation.
This commit is contained in:
Kevin Sawicki 2017-03-28 08:59:46 -07:00 committed by GitHub
commit d196486cb4

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python
import argparse
import glob import glob
import os import os
import re import re
@ -87,7 +88,9 @@ def main():
copy_chrome_binary('mksnapshot') copy_chrome_binary('mksnapshot')
copy_license() copy_license()
if PLATFORM != 'win32': args = parse_args()
if PLATFORM != 'win32' and not args.no_api_docs:
create_api_json_schema() create_api_json_schema()
if PLATFORM == 'linux': if PLATFORM == 'linux':
@ -242,5 +245,13 @@ def create_symbols_zip():
make_zip(os.path.join(DIST_DIR, pdb_name), pdbs + licenses, []) make_zip(os.path.join(DIST_DIR, pdb_name), pdbs + licenses, [])
def parse_args():
parser = argparse.ArgumentParser(description='Create Electron Distribution')
parser.add_argument('--no_api_docs',
action='store_true',
help='Skip generating the Electron API Documentation!')
return parser.parse_args()
if __name__ == '__main__': if __name__ == '__main__':
sys.exit(main()) sys.exit(main())