Skip to content

Commit 655eec0

Browse files
authored
fix windows build (#4043)
1 parent 51eda3f commit 655eec0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build-electron.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ async function main() {
7878
console.log('The directory has been created successfully!');
7979

8080
// Copy build
81-
await copyFolderIfExists('packages/bruno-app/out', 'packages/bruno-electron/web');
81+
await copyFolderIfExists('packages/bruno-app/dist', 'packages/bruno-electron/web');
8282

8383
// Change paths in next
8484
const files = await fs.readdir('packages/bruno-electron/web');
8585
for (const file of files) {
8686
if (file.endsWith('.html')) {
8787
let content = await fs.readFile(`packages/bruno-electron/web/${file}`, 'utf8');
88-
content = content.replace(/\/_next\//g, '_next/');
88+
content = content.replace(/\/static/g, './static');
8989
await fs.writeFile(`packages/bruno-electron/web/${file}`, content);
9090
}
9191
}

0 commit comments

Comments
 (0)