chore: add logging to zip-symbols.py to help debugging timeouts
This commit is contained in:
parent
6b621e203c
commit
19e02cd63e
1 changed files with 8 additions and 2 deletions
|
@ -13,6 +13,7 @@ PROJECT_NAME = get_electron_branding()['project_name']
|
||||||
OUT_DIR = get_out_dir()
|
OUT_DIR = get_out_dir()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
print('Zipping Symbols')
|
||||||
if get_target_arch() == 'mips64el':
|
if get_target_arch() == 'mips64el':
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -22,18 +23,23 @@ def main():
|
||||||
|
|
||||||
with scoped_cwd(OUT_DIR):
|
with scoped_cwd(OUT_DIR):
|
||||||
dirs = ['{0}.breakpad.syms'.format(PROJECT_NAME)]
|
dirs = ['{0}.breakpad.syms'.format(PROJECT_NAME)]
|
||||||
|
print('Making symbol zip: ' + zip_file)
|
||||||
make_zip(zip_file, licenses, dirs)
|
make_zip(zip_file, licenses, dirs)
|
||||||
|
|
||||||
if PLATFORM == 'darwin':
|
if PLATFORM == 'darwin':
|
||||||
dsym_name = 'dsym.zip'
|
dsym_name = 'dsym.zip'
|
||||||
with scoped_cwd(OUT_DIR):
|
with scoped_cwd(OUT_DIR):
|
||||||
dsyms = glob.glob('*.dSYM')
|
dsyms = glob.glob('*.dSYM')
|
||||||
make_zip(os.path.join(OUT_DIR, dsym_name), licenses, dsyms)
|
dsym_zip_file = os.path.join(OUT_DIR, dsym_name)
|
||||||
|
print('Making dsym zip: ' + dsym_zip_file)
|
||||||
|
make_zip(dsym_zip_file, licenses, dsyms)
|
||||||
elif PLATFORM == 'win32':
|
elif PLATFORM == 'win32':
|
||||||
pdb_name = 'pdb.zip'
|
pdb_name = 'pdb.zip'
|
||||||
with scoped_cwd(OUT_DIR):
|
with scoped_cwd(OUT_DIR):
|
||||||
pdbs = glob.glob('*.pdb')
|
pdbs = glob.glob('*.pdb')
|
||||||
make_zip(os.path.join(OUT_DIR, pdb_name), pdbs + licenses, [])
|
pdb_zip_file = os.path.join(OUT_DIR, pdb_name)
|
||||||
|
print('Making pdb zip: ' + pdb_zip_file)
|
||||||
|
make_zip(pdb_zip_file, pdbs + licenses, [])
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
sys.exit(main())
|
sys.exit(main())
|
Loading…
Reference in a new issue