Skip to content

Commit

Permalink
chore: fix path to dump_syms in the windows breakpad tool
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Sep 28, 2018
1 parent 27d3630 commit b0b9ebd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ build_script:
- appveyor PushArtifact out/ffmpeg/ffmpeg.zip
- ps: >-
if ($env:GN_CONFIG -eq 'release') {
ninja -C out/Default third_party/breakpad:dump_syms
python electron\script\dump-symbols.py -d %cd%/out/Default/electron.breakpad.syms
python electron\script\zip-symbols.py
appveyor PushArtifact out/Default/electron.breakpad.syms
Expand Down
14 changes: 12 additions & 2 deletions tools/win/generate_breakpad_symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,20 @@
import sys
import threading

GN_SRC_DIR = os.path.abspath(os.path.join(__file__, '..', '..', '..', '..'))

# Duplicated as this script lives in tools not script
def get_out_dir():
out_dir = 'Debug'
override = os.environ.get('ELECTRON_OUT_DIR')
if override is not None:
out_dir = override
return os.path.join(GN_SRC_DIR, 'out', out_dir)


CONCURRENT_TASKS=4
SOURCE_ROOT=os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
DUMP_SYMS=os.path.join(SOURCE_ROOT, 'vendor', 'breakpad', 'dump_syms.exe')
OUT_DIR=get_out_dir()
DUMP_SYMS=os.path.join(OUT_DIR, 'dump_syms.exe')


def GetCommandOutput(command):
Expand Down

0 comments on commit b0b9ebd

Please sign in to comment.