Publish Windows PDBs to allow debugging without Symbol server
This commit is contained in:
parent
8155e71925
commit
43eba3dada
2 changed files with 18 additions and 0 deletions
|
@ -152,6 +152,10 @@ def create_symbols():
|
||||||
dsyms = glob.glob(os.path.join(OUT_DIR, '*.dSYM'))
|
dsyms = glob.glob(os.path.join(OUT_DIR, '*.dSYM'))
|
||||||
for dsym in dsyms:
|
for dsym in dsyms:
|
||||||
shutil.copytree(dsym, os.path.join(DIST_DIR, os.path.basename(dsym)))
|
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():
|
def create_dist_zip():
|
||||||
|
@ -223,6 +227,14 @@ def create_symbols_zip():
|
||||||
with scoped_cwd(DIST_DIR):
|
with scoped_cwd(DIST_DIR):
|
||||||
dsyms = glob.glob('*.dSYM')
|
dsyms = glob.glob('*.dSYM')
|
||||||
make_zip(os.path.join(DIST_DIR, dsym_name), licenses, dsyms)
|
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__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -35,6 +35,10 @@ DSYM_NAME = '{0}-{1}-{2}-{3}-dsym.zip'.format(PROJECT_NAME,
|
||||||
ELECTRON_VERSION,
|
ELECTRON_VERSION,
|
||||||
get_platform_key(),
|
get_platform_key(),
|
||||||
get_target_arch())
|
get_target_arch())
|
||||||
|
PDB_NAME = '{0}-{1}-{2}-{3}-pdb.zip'.format(PROJECT_NAME,
|
||||||
|
ELECTRON_VERSION,
|
||||||
|
get_platform_key(),
|
||||||
|
get_target_arch())
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -85,6 +89,8 @@ def main():
|
||||||
upload_electron(github, release, os.path.join(DIST_DIR, SYMBOLS_NAME))
|
upload_electron(github, release, os.path.join(DIST_DIR, SYMBOLS_NAME))
|
||||||
if PLATFORM == 'darwin':
|
if PLATFORM == 'darwin':
|
||||||
upload_electron(github, release, os.path.join(DIST_DIR, DSYM_NAME))
|
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.
|
# Upload free version of ffmpeg.
|
||||||
ffmpeg = 'ffmpeg-{0}-{1}-{2}.zip'.format(
|
ffmpeg = 'ffmpeg-{0}-{1}-{2}.zip'.format(
|
||||||
|
|
Loading…
Reference in a new issue