From 5c79f9cbd8754c7ca49261aed4f2e8585285e041 Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Fri, 6 Dec 2024 15:29:07 +0800 Subject: [PATCH] fix debug symbols script --- apps/desktop/scripts/stripDebugSymbols.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/scripts/stripDebugSymbols.js b/apps/desktop/scripts/stripDebugSymbols.js index c17b9834..9760e7bf 100644 --- a/apps/desktop/scripts/stripDebugSymbols.js +++ b/apps/desktop/scripts/stripDebugSymbols.js @@ -13,13 +13,13 @@ const targetDir = path.join(__dirname, "../../../target"); async function main() { const dirs = []; - const releaseDir = path.join(targetDir, "release"); + let releaseDir = path.join(targetDir, "release"); const releaseFiles = await fs.readdir(releaseDir); let releaseFile = releaseFiles.find((f) => f.startsWith("Cap")); dirs.push(releaseDir); if (!releaseFile) { - const releaseDir = path.join( + releaseDir = path.join( targetDir, `${process.env.TAURI_ENV_TARGET_TRIPLE}/release` );