From 48fbf14bc140198f9d3eb28ddc35ddbdfafde1cc Mon Sep 17 00:00:00 2001 From: VIAUD Nathan <nathan.viaud@inria.fr> Date: Thu, 23 Jan 2025 13:34:13 +0100 Subject: [PATCH] fix: prune assets not working --- electron/components/file.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/electron/components/file.js b/electron/components/file.js index 9c744a29..dc765237 100644 --- a/electron/components/file.js +++ b/electron/components/file.js @@ -133,7 +133,6 @@ const openEpocProject = async function (filepath) { if (!fs.existsSync(path.join(workdir, 'project.json'))) { const project = await importEpoc(filepath, startTime, workdir); store.updateState('projects', { [BrowserWindow.getFocusedWindow().id]: project }); - console.log('filepath', filepath); return { project, imported: true, @@ -219,7 +218,7 @@ const zipFiles = async function (workdir, filepath, exporting) { const zip = new AdmZip(); zip.addLocalFolder(workdir, '', (entry) => { - return excluded.every((e) => entry.indexOf(e) === -1); + return excluded.every((e) => entry.replaceAll('\\', '/').indexOf(e) === -1); }); await zip.writeZipPromise(filepath, null); }; -- GitLab