Enable verbose mode
This commit is contained in:
parent
6243d45946
commit
2138c5bff0
1 changed files with 10 additions and 3 deletions
|
@ -11,7 +11,8 @@ import stat
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
import _winreg
|
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, \
|
from lib.util import scoped_cwd, rm_rf, get_electron_version, make_zip, \
|
||||||
execute, electron_gyp
|
execute, electron_gyp
|
||||||
|
|
||||||
|
@ -79,6 +80,11 @@ TARGET_DIRECTORIES = {
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
args = parse_args()
|
||||||
|
|
||||||
|
if args.verbose:
|
||||||
|
enable_verbose_mode()
|
||||||
|
|
||||||
rm_rf(DIST_DIR)
|
rm_rf(DIST_DIR)
|
||||||
os.makedirs(DIST_DIR)
|
os.makedirs(DIST_DIR)
|
||||||
|
|
||||||
|
@ -92,8 +98,6 @@ def main():
|
||||||
copy_vcruntime_binaries()
|
copy_vcruntime_binaries()
|
||||||
copy_ucrt_binaries()
|
copy_ucrt_binaries()
|
||||||
|
|
||||||
args = parse_args()
|
|
||||||
|
|
||||||
if PLATFORM != 'win32' and not args.no_api_docs:
|
if PLATFORM != 'win32' and not args.no_api_docs:
|
||||||
create_api_json_schema()
|
create_api_json_schema()
|
||||||
create_typescript_definitions()
|
create_typescript_definitions()
|
||||||
|
@ -307,6 +311,9 @@ def parse_args():
|
||||||
parser.add_argument('--no_api_docs',
|
parser.add_argument('--no_api_docs',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help='Skip generating the Electron API Documentation!')
|
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()
|
return parser.parse_args()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue