From 9fae7f72d4a056a11f487266ffd415af550df13f Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Mon, 17 Oct 2022 22:17:03 +0530 Subject: [PATCH] feat: electron build for linux --- .../src/providers/ReduxStore/slices/collections/actions.js | 1 + packages/bruno-electron/electron-builder.yml | 6 ++++++ scripts/build-electron.sh | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js b/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js index 7fb082929..a78853c9d 100644 --- a/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js +++ b/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js @@ -59,6 +59,7 @@ export const loadCollectionsFromIdb = () => (dispatch) => { export const openLocalCollectionEvent = (uid, pathname) => (dispatch, getState) => { const localCollection = { + version: "1", uid: uid, name: path.basename(pathname), pathname: pathname, diff --git a/packages/bruno-electron/electron-builder.yml b/packages/bruno-electron/electron-builder.yml index bfbee376c..d8bb02489 100644 --- a/packages/bruno-electron/electron-builder.yml +++ b/packages/bruno-electron/electron-builder.yml @@ -22,3 +22,9 @@ mac: hardenedRuntime: true entitlements: resources/entitlements.mac.plist entitlementsInherit: resources/entitlements.mac.plist +linux: + artifactName: ${name}_${version}_${arch}_linux.${ext} + icon: resources/icons/png + target: + - AppImage + - deb \ No newline at end of file diff --git a/scripts/build-electron.sh b/scripts/build-electron.sh index c928267c8..719a0c593 100755 --- a/scripts/build-electron.sh +++ b/scripts/build-electron.sh @@ -19,4 +19,4 @@ 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 \ No newline at end of file +npm run dist --workspace=packages/bruno-electron \ No newline at end of file