feat: electron build for mac

This commit is contained in:
Anoop M D
2022-10-17 21:04:05 +05:30
parent 075e9162c2
commit c258bc1590
23 changed files with 73 additions and 18 deletions

22
scripts/build-electron.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
# Remove out directory
rm -rf packages/bruno-electron/out
# Remove web directory
rm -rf packages/bruno-electron/web
# Create a new web directory
mkdir packages/bruno-electron/web
# Copy build
cp -r packages/bruno-app/out/* packages/bruno-electron/web
# Change paths in next
sed -i'' -e 's@/_next/@_next/@g' packages/bruno-electron/web/**.html
# Remove sourcemaps
find packages/bruno-electron/web -name '*.map' -type f -delete
npm run pack-app --workspace=packages/bruno-electron