Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

don't strip debug symbols

Brendan Allan4a2a3f1ac969
diff --git a/apps/desktop/scripts/stripDebugSymbols.js b/apps/desktop/scripts/stripDebugSymbols.js
index a00782427..174ee1e01 100644
--- a/apps/desktop/scripts/stripDebugSymbols.js
+++ b/apps/desktop/scripts/stripDebugSymbols.js
@@ -38,7 +38,7 @@ async function main() {
await exec(
`dsymutil "${binaryPath}" -o "${path.join(targetDir, releaseFile)}.dSYM"`
);
- await exec(`strip "${binaryPath}"`);
+ // await exec(`strip "${binaryPath}"`);
} else if (process.platform === "win32") {
// TODO
} else {
diff --git a/scripts/symbolicate-macos-crash.js b/scripts/symbolicate-macos-crash.js
index 4316c9017..310097c84 100644
--- a/scripts/symbolicate-macos-crash.js
+++ b/scripts/symbolicate-macos-crash.js
@@ -23,9 +23,7 @@ async function main() {
const file = await fs.readFile(crashFilePath).then((b) => b.toString());
const sections = file.split("\n\n");
- const crashedSectionIndex = sections.findIndex((s) =>
- s.includes("Crashed::")
- );
+ const crashedSectionIndex = sections.findIndex((s) => s.includes("Crashed:"));
const crashedSection = sections[crashedSectionIndex];
if (!crashedSection) throw new Error("crashed section not found");
@@ -39,7 +37,7 @@ async function main() {
const loadAddress = loadAddressOrSymbol;
const symbol = await exec(
- `atos -o "${targetDir}/Cap - Development.dSYM/Contents/Resources/DWARF/Cap - Development" -l ${loadAddress} ${address}`
+ `atos -o "${targetDir}/Cap.dSYM" -l ${loadAddress} ${address}`
).then((s) => s.stdout.trim());
const loadAddressIndex = line.indexOf(loadAddress);