#!/usr/bin/env python
+import argparse
import glob
import os
import re
copy_chrome_binary('mksnapshot')
copy_license()
- if PLATFORM != 'win32':
+ args = parse_args()
+
+ if PLATFORM != 'win32' and not args.no_api_docs:
create_api_json_schema()
if PLATFORM == 'linux':
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__':
sys.exit(main())