Browse Source

Enable verbose mode

John Kleinschmidt 7 years ago
parent
commit
2138c5bff0
1 changed files with 10 additions and 3 deletions
  1. 10 3
      script/create-dist.py

+ 10 - 3
script/create-dist.py

@@ -11,7 +11,8 @@ import stat
 if sys.platform == "win32":
   import _winreg
 
-from lib.config import BASE_URL, PLATFORM, get_target_arch, get_zip_name
+from lib.config import BASE_URL, PLATFORM, enable_verbose_mode, \
+                       get_target_arch, get_zip_name
 from lib.util import scoped_cwd, rm_rf, get_electron_version, make_zip, \
                      execute, electron_gyp
 
@@ -79,6 +80,11 @@ TARGET_DIRECTORIES = {
 
 
 def main():
+  args = parse_args()
+
+  if args.verbose:
+    enable_verbose_mode()
+
   rm_rf(DIST_DIR)
   os.makedirs(DIST_DIR)
 
@@ -92,8 +98,6 @@ def main():
     copy_vcruntime_binaries()
     copy_ucrt_binaries()
 
-  args = parse_args()
-
   if PLATFORM != 'win32' and not args.no_api_docs:
     create_api_json_schema()
     create_typescript_definitions()
@@ -307,6 +311,9 @@ def parse_args():
   parser.add_argument('--no_api_docs',
                       action='store_true',
                       help='Skip generating the Electron API Documentation!')
+  parser.add_argument('-v', '--verbose',
+                      action='store_true',
+                      help='Prints the output of the subprocesses')
   return parser.parse_args()