Skip to content

Commit

Permalink
Merge pull request #6225 from miniak/publish-pdb
Browse files Browse the repository at this point in the history
Publish Windows PDBs to allow debugging without Symbol server
  • Loading branch information
kevinsawicki committed Jun 29, 2016
2 parents 7279fc4 + 43eba3d commit 511dced
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions script/create-dist.py
Expand Up @@ -152,6 +152,10 @@ def create_symbols():
dsyms = glob.glob(os.path.join(OUT_DIR, '*.dSYM'))
for dsym in dsyms:
shutil.copytree(dsym, os.path.join(DIST_DIR, os.path.basename(dsym)))
elif PLATFORM == 'win32':
pdbs = glob.glob(os.path.join(OUT_DIR, '*.pdb'))
for pdb in pdbs:
shutil.copy2(pdb, DIST_DIR)


def create_dist_zip():
Expand Down Expand Up @@ -223,6 +227,14 @@ def create_symbols_zip():
with scoped_cwd(DIST_DIR):
dsyms = glob.glob('*.dSYM')
make_zip(os.path.join(DIST_DIR, dsym_name), licenses, dsyms)
elif PLATFORM == 'win32':
pdb_name = '{0}-{1}-{2}-{3}-pdb.zip'.format(PROJECT_NAME,
ELECTRON_VERSION,
get_platform_key(),
get_target_arch())
with scoped_cwd(DIST_DIR):
pdbs = glob.glob('*.pdb')
make_zip(os.path.join(DIST_DIR, pdb_name), pdbs + licenses, [])


if __name__ == '__main__':
Expand Down
6 changes: 6 additions & 0 deletions script/upload.py
Expand Up @@ -35,6 +35,10 @@
ELECTRON_VERSION,
get_platform_key(),
get_target_arch())
PDB_NAME = '{0}-{1}-{2}-{3}-pdb.zip'.format(PROJECT_NAME,
ELECTRON_VERSION,
get_platform_key(),
get_target_arch())


def main():
Expand Down Expand Up @@ -85,6 +89,8 @@ def main():
upload_electron(github, release, os.path.join(DIST_DIR, SYMBOLS_NAME))
if PLATFORM == 'darwin':
upload_electron(github, release, os.path.join(DIST_DIR, DSYM_NAME))
elif PLATFORM == 'win32':
upload_electron(github, release, os.path.join(DIST_DIR, PDB_NAME))

# Upload free version of ffmpeg.
ffmpeg = 'ffmpeg-{0}-{1}-{2}.zip'.format(
Expand Down

0 comments on commit 511dced

Please sign in to comment.