diff --git a/scripts/build-electron.js b/scripts/build-electron.js index 9825c3a09..ab44dcbdf 100644 --- a/scripts/build-electron.js +++ b/scripts/build-electron.js @@ -78,14 +78,14 @@ async function main() { console.log('The directory has been created successfully!'); // Copy build - await copyFolderIfExists('packages/bruno-app/out', 'packages/bruno-electron/web'); + await copyFolderIfExists('packages/bruno-app/dist', 'packages/bruno-electron/web'); // Change paths in next const files = await fs.readdir('packages/bruno-electron/web'); for (const file of files) { if (file.endsWith('.html')) { let content = await fs.readFile(`packages/bruno-electron/web/${file}`, 'utf8'); - content = content.replace(/\/_next\//g, '_next/'); + content = content.replace(/\/static/g, './static'); await fs.writeFile(`packages/bruno-electron/web/${file}`, content); } }