Add script to call symstore
This commit is contained in:
parent
edcae49e52
commit
15a05b3639
1 changed files with 31 additions and 0 deletions
31
script/upload-windows-pdb.py
Normal file
31
script/upload-windows-pdb.py
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
|
from lib.util import execute, rm_rf, safe_mkdir
|
||||||
|
|
||||||
|
|
||||||
|
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
||||||
|
SYMBOLS_DIR = 'dist\\symbols'
|
||||||
|
PDB_LIST = [
|
||||||
|
'out\\Release\\atom.exe.pdb',
|
||||||
|
'vendor\\brightray\\vendor\\download\\libchromiumcontent\\Release\\chromiumcontent.dll.pdb',
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
os.chdir(SOURCE_ROOT)
|
||||||
|
|
||||||
|
rm_rf(SYMBOLS_DIR)
|
||||||
|
safe_mkdir(SYMBOLS_DIR)
|
||||||
|
for pdb in PDB_LIST:
|
||||||
|
run_symstore(pdb, SYMBOLS_DIR, 'AtomShell')
|
||||||
|
|
||||||
|
|
||||||
|
def run_symstore(pdb, dest, product):
|
||||||
|
execute(['symstore', 'add', '/r', '/f', pdb, '/s', dest, '/t', product])
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
import sys
|
||||||
|
sys.exit(main())
|
Loading…
Add table
Add a link
Reference in a new issue