File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22
3+ import argparse
34import glob
45import os
56import 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+
245256if __name__ == '__main__' :
246257 sys .exit (main ())
You can’t perform that action at this time.
0 commit comments