Skip to content

Commit

Permalink
chore: add logging to zip-symbols.py to help debugging timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Oct 10, 2018
1 parent 6b621e2 commit 19e02cd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions script/zip-symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
OUT_DIR = get_out_dir()

def main():
print('Zipping Symbols')
if get_target_arch() == 'mips64el':
return

Expand All @@ -22,18 +23,23 @@ def main():

with scoped_cwd(OUT_DIR):
dirs = ['{0}.breakpad.syms'.format(PROJECT_NAME)]
print('Making symbol zip: ' + zip_file)
make_zip(zip_file, licenses, dirs)

if PLATFORM == 'darwin':
dsym_name = 'dsym.zip'
with scoped_cwd(OUT_DIR):
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':
pdb_name = 'pdb.zip'
with scoped_cwd(OUT_DIR):
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__':
sys.exit(main())

0 comments on commit 19e02cd

Please sign in to comment.