Skip to content

Commit 06cb550

Browse files
build: upload sentry src bundles on windows as well (electron#24773)
1 parent 1b175a0 commit 06cb550

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.circleci/config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,6 @@ step-maybe-generate-breakpad-symbols: &step-maybe-generate-breakpad-symbols
745745
if [ "$GENERATE_SYMBOLS" == "true" ]; then
746746
cd src
747747
ninja -C out/Default electron:electron_symbols
748-
cd out/Default/breakpad_symbols
749-
find . -name \*.sym -print0 | xargs -0 npx @sentry/cli@1.51.1 difutil bundle-sources
750748
fi
751749
752750
step-maybe-zip-symbols: &step-maybe-zip-symbols

script/release/uploaders/upload-symbols.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env python
22

3-
import os
43
import glob
4+
import os
5+
import subprocess
56
import sys
67

78
sys.path.append(
@@ -22,6 +23,10 @@
2223
os.path.join(RELEASE_DIR, '{0}.exe.pdb'.format(PROJECT_NAME))
2324
]
2425

26+
NPX_CMD = "npx"
27+
if sys.platform == "win32":
28+
NPX_CMD += ".cmd"
29+
2530

2631
def main():
2732
os.chdir(ELECTRON_DIR)
@@ -30,7 +35,13 @@ def main():
3035
run_symstore(pdb, SYMBOLS_DIR, PRODUCT_NAME)
3136
files = glob.glob(SYMBOLS_DIR + '/*.pdb/*/*.pdb')
3237
else:
33-
files = glob.glob(SYMBOLS_DIR + '/*/*/*.sym') + glob.glob(SYMBOLS_DIR + '/*/*/*.src.zip')
38+
files = glob.glob(SYMBOLS_DIR + '/*/*/*.sym')
39+
40+
for symbol_file in files:
41+
print("Generating Sentry src bundle for: " + symbol_file)
42+
subprocess.check_output([NPX_CMD, '@sentry/cli@1.51.1', 'difutil', 'bundle-sources', symbol_file])
43+
44+
files += glob.glob(SYMBOLS_DIR + '/*/*/*.src.zip')
3445

3546
# The file upload needs to be atom-shell/symbols/:symbol_name/:hash/:symbol
3647
os.chdir(SYMBOLS_DIR)

0 commit comments

Comments
 (0)