Use atom.gyp to generate filenames in upload-windows-pdb.py

This commit is contained in:
Cheng Zhao 2015-04-12 22:26:00 +08:00
parent 7255962bd3
commit 74be99de31

View file

@ -2,16 +2,21 @@
import os
import glob
import sys
from lib.config import s3_config
from lib.util import execute, rm_rf, safe_mkdir, s3put
from lib.util import atom_gyp, execute, rm_rf, safe_mkdir, s3put
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
SYMBOLS_DIR = 'dist\\symbols'
DOWNLOAD_DIR = 'vendor\\brightray\\vendor\\download\\libchromiumcontent'
PROJECT_NAME = atom_gyp()['project_name%']
PRODUCT_NAME = atom_gyp()['product_name%']
PDB_LIST = [
'out\\R\\atom.exe.pdb',
'out\\R\\{0}.exe.pdb'.format(PROJECT_NAME),
'out\\R\\node.dll.pdb',
]
@ -22,7 +27,7 @@ def main():
rm_rf(SYMBOLS_DIR)
safe_mkdir(SYMBOLS_DIR)
for pdb in PDB_LIST:
run_symstore(pdb, SYMBOLS_DIR, 'AtomShell')
run_symstore(pdb, SYMBOLS_DIR, PRODUCT_NAME)
bucket, access_key, secret_key = s3_config()
files = glob.glob(SYMBOLS_DIR + '/*.pdb/*/*.pdb')
@ -40,5 +45,4 @@ def upload_symbols(bucket, access_key, secret_key, files):
if __name__ == '__main__':
import sys
sys.exit(main())