Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix debug symbols once and for all

Brendan Allan3515fd3bb92c
diff --git a/apps/desktop/scripts/stripDebugSymbols.js b/apps/desktop/scripts/stripDebugSymbols.js
index c2030847f..0eab21b84 100644
--- a/apps/desktop/scripts/stripDebugSymbols.js
+++ b/apps/desktop/scripts/stripDebugSymbols.js
@@ -1,3 +1,5 @@
+// @ts-check
+
import * as fs from "node:fs/promises";
import * as path from "node:path";
import { fileURLToPath } from "node:url";
@@ -33,7 +35,7 @@ async function main() {
const binaryPath = path.join(releaseDir, releaseFile);
await exec(
- `dsymutil "${binaryPath}" -o "${targetDir.join(releaseFile)}.dSYM"`
+ `dsymutil "${binaryPath}" -o "${path.join(targetDir, releaseFile)}.dSYM"`
);
await exec(`strip "${binaryPath}"`);
}