Fix symbolication of windows crash reports
This commit is contained in:
parent
8047e9cccd
commit
d10126d337
2 changed files with 18 additions and 0 deletions
14
patches/@electron+symbolicate-mac+2.0.2.patch
Normal file
14
patches/@electron+symbolicate-mac+2.0.2.patch
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
diff --git a/node_modules/@electron/symbolicate-mac/index.js b/node_modules/@electron/symbolicate-mac/index.js
|
||||||
|
index 36287bb..239564a 100755
|
||||||
|
--- a/node_modules/@electron/symbolicate-mac/index.js
|
||||||
|
+++ b/node_modules/@electron/symbolicate-mac/index.js
|
||||||
|
@@ -60,7 +60,8 @@ const symbolicate = async (options) => {
|
||||||
|
async function symbolicateOne({image, offset}) {
|
||||||
|
const { debugId, path: modulePath } = image
|
||||||
|
if (!symbolCache.has(debugId)) {
|
||||||
|
- const parsed = await getSymbolFile(debugId.replace(/-/g, '') + '0', path.basename(modulePath))
|
||||||
|
+ const suffix = path.extname(modulePath) === '.pdb' ? '1' : '0';
|
||||||
|
+ const parsed = await getSymbolFile(debugId.replace(/-/g, '') + suffix, path.basename(modulePath))
|
||||||
|
symbolCache.set(debugId, parsed)
|
||||||
|
}
|
||||||
|
const parsed = symbolCache.get(debugId)
|
|
@ -39,6 +39,10 @@ async function main(): Promise<void> {
|
||||||
if (filename.startsWith('signal-desktop-')) {
|
if (filename.startsWith('signal-desktop-')) {
|
||||||
return 'electron';
|
return 'electron';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (filename.startsWith('Signal') && filename.endsWith('.exe')) {
|
||||||
|
return 'electron.exe.pdb';
|
||||||
|
}
|
||||||
return filename;
|
return filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue