ci: fix windows symbol gen

This commit is contained in:
John Kleinschmidt 2018-09-28 13:24:00 -04:00
parent 78239ff0ad
commit fda4112168
2 changed files with 21 additions and 11 deletions

View file

@ -38,7 +38,10 @@ build_script:
- ps: >- - ps: >-
if ($env:GN_CONFIG -eq 'release') { if ($env:GN_CONFIG -eq 'release') {
ninja -C out/Default third_party/breakpad:dump_syms ninja -C out/Default third_party/breakpad:dump_syms
python electron\script\dump-symbols.py -d %cd%/out/Default/electron.breakpad.syms }
- if "%GN_CONFIG%"=="release" ( python electron\script\dump-symbols.py -d %cd%\out\Default\electron.breakpad.syms -v)
- ps: >-
if ($env:GN_CONFIG -eq 'release') {
python electron\script\zip-symbols.py python electron\script\zip-symbols.py
appveyor PushArtifact out/Default/electron.breakpad.syms appveyor PushArtifact out/Default/electron.breakpad.syms
} }

View file

@ -5,7 +5,8 @@ import os
import sys import sys
from lib.config import PLATFORM, enable_verbose_mode, is_verbose_mode from lib.config import PLATFORM, enable_verbose_mode, is_verbose_mode
from lib.util import get_electron_branding, execute, rm_rf, get_out_dir from lib.util import get_electron_branding, execute, rm_rf, get_out_dir, \
GN_SRC_DIR
ELECTRON_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) ELECTRON_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
SOURCE_ROOT = os.path.abspath(os.path.dirname(ELECTRON_ROOT)) SOURCE_ROOT = os.path.abspath(os.path.dirname(ELECTRON_ROOT))
@ -46,7 +47,13 @@ def main():
'--jobs=16', '--jobs=16',
os.path.relpath(build_path), os.path.relpath(build_path),
] ]
execute([sys.executable, generate_breakpad_symbols] + args) #Make sure msdia140.dll is in the path (needed for dump_syms.exe)
env = os.environ.copy()
msdia140_dll_path = os.path.join(GN_SRC_DIR, 'third_party', 'llvm-build',
'Release+Asserts', 'bin')
env['PATH'] = os.path.pathsep.join(
[env.get('PATH', '')] + [msdia140_dll_path])
execute([sys.executable, generate_breakpad_symbols] + args, env)
def get_names_from_branding(): def get_names_from_branding():
variables = get_electron_branding() variables = get_electron_branding()