From: Cheng Zhao Date: Fri, 10 Apr 2015 05:24:05 +0000 (+0800) Subject: mac: Improve how we find .dSYM bundle X-Git-Tag: v0.23.0~5^2~11 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=8500a53c238229476479302bb2d86f64d6a40380;p=electron.git mac: Improve how we find .dSYM bundle --- diff --git a/tools/posix/generate_breakpad_symbols.py b/tools/posix/generate_breakpad_symbols.py index 88cae88f..d3f98d4d 100755 --- a/tools/posix/generate_breakpad_symbols.py +++ b/tools/posix/generate_breakpad_symbols.py @@ -61,8 +61,10 @@ def FindBundlePart(full_path): def GetDSYMBundle(options, binary_path): """Finds the .dSYM bundle to the binary.""" - if not binary_path.endswith(' Framework'): - return binary_path + if os.path.isabs(binary_path): + dsym_path = binary_path + '.dSYM' + if os.path.exists(dsym_path): + return dsym_path filename = FindBundlePart(binary_path) search_dirs = [options.build_dir, options.libchromiumcontent_dir]