diff --git a/patches/@electron+symbolicate-mac+2.0.2.patch b/patches/@electron+symbolicate-mac+2.0.2.patch new file mode 100644 index 0000000000..247f900cde --- /dev/null +++ b/patches/@electron+symbolicate-mac+2.0.2.patch @@ -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) diff --git a/ts/scripts/symbolicate-crash-report.ts b/ts/scripts/symbolicate-crash-report.ts index d8da6488e9..1aa91258f1 100644 --- a/ts/scripts/symbolicate-crash-report.ts +++ b/ts/scripts/symbolicate-crash-report.ts @@ -39,6 +39,10 @@ async function main(): Promise { if (filename.startsWith('signal-desktop-')) { return 'electron'; } + + if (filename.startsWith('Signal') && filename.endsWith('.exe')) { + return 'electron.exe.pdb'; + } return filename; }