From 5a48c16896ecccf80dd3c41d48e31477ce6fb352 Mon Sep 17 00:00:00 2001 From: Bilal Afkir Date: Fri, 10 Feb 2017 10:47:22 +0100 Subject: [PATCH] fix(install): fix install script on windows to handle debug mode --- scripts/windows/install_google_breakpad.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/scripts/windows/install_google_breakpad.py b/scripts/windows/install_google_breakpad.py index c73aa82a..7d6df500 100644 --- a/scripts/windows/install_google_breakpad.py +++ b/scripts/windows/install_google_breakpad.py @@ -115,13 +115,19 @@ for dir in google_breakpad_library_dir_base: - +google_breakpad_binary_dir_base = [ + 'tools/windows/dump_syms/Release' + ] google_breakpad_binary_files = [ - 'tools/windows/dump_syms/Release/dump_syms.exe' + 'dump_syms.exe' ] -for f in google_breakpad_binary_files: - src, dst = convertSrcAndDst(f, os.path.basename(f), 'bin') - copyFile(src, dst) +for dir in google_breakpad_binary_dir_base: + for buildType in build_type: + for file in google_breakpad_binary_files: + path = os.path.join(dir, buildType, 'lib', file) + src, dst = convertSrcAndDst(path, os.path.basename(path), 'bin') + if os.path.exists(src): + copyFile(src, dst)