build: put v8_context_snapshot_generator.dSYM in its own zip file (#33183)
This commit is contained in:
parent
12aa991df2
commit
3d9b9b97cf
3 changed files with 18 additions and 1 deletions
|
@ -33,9 +33,17 @@ def main():
|
|||
dsym_name = 'dsym.zip'
|
||||
with scoped_cwd(args.build_dir):
|
||||
dsyms = glob.glob('*.dSYM')
|
||||
snapshot_dsyms = ['v8_context_snapshot_generator.dSYM']
|
||||
for dsym in snapshot_dsyms:
|
||||
if (dsym in dsyms):
|
||||
dsyms.remove(dsym)
|
||||
dsym_zip_file = os.path.join(args.build_dir, dsym_name)
|
||||
print('Making dsym zip: ' + dsym_zip_file)
|
||||
make_zip(dsym_zip_file, licenses, dsyms)
|
||||
dsym_snapshot_name = 'dsym-snapshot.zip'
|
||||
dsym_snapshot_zip_file = os.path.join(args.build_dir, dsym_snapshot_name)
|
||||
print('Making dsym snapshot zip: ' + dsym_snapshot_zip_file)
|
||||
make_zip(dsym_snapshot_zip_file, licenses, snapshot_dsyms)
|
||||
if len(dsyms) > 0 and 'DELETE_DSYMS_AFTER_ZIP' in os.environ:
|
||||
execute(['rm', '-rf'] + dsyms)
|
||||
elif PLATFORM == 'win32':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue