From f6ab59ceda4837d59ed54caaf03b48db3b6b5970 Mon Sep 17 00:00:00 2001 From: Pragadesh-45 Date: Thu, 6 Mar 2025 17:40:15 +0530 Subject: [PATCH] feat: update Windows build configuration to support custom installation path from GUI installer --- .../bruno-electron/electron-builder-config.js | 20 +++++++++++++++++-- packages/bruno-electron/package.json | 4 ++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/packages/bruno-electron/electron-builder-config.js b/packages/bruno-electron/electron-builder-config.js index 57d3f6a0d..a6a99c112 100644 --- a/packages/bruno-electron/electron-builder-config.js +++ b/packages/bruno-electron/electron-builder-config.js @@ -37,8 +37,24 @@ const config = { win: { artifactName: '${name}_${version}_${arch}_win.${ext}', icon: 'resources/icons/png', - certificateFile: `${process.env.WIN_CERT_FILEPATH}`, - certificatePassword: `${process.env.WIN_CERT_PASSWORD}` + publisherName: 'Anoop MD', + target: [ + { + target: 'nsis', + arch: ['x64'] + } + ] + }, + nsis: { + oneClick: false, + allowToChangeInstallationDirectory: true, + allowElevation: true, + createDesktopShortcut: true, + createStartMenuShortcut: true, + installerIcon: "resources/icons/win/icon.ico", + uninstallerIcon: "resources/icons/win/icon.ico", + installerHeaderIcon: "resources/icons/win/icon.ico", + warningsAsErrors: false } }; diff --git a/packages/bruno-electron/package.json b/packages/bruno-electron/package.json index c3d2cc2e5..48965ad6b 100644 --- a/packages/bruno-electron/package.json +++ b/packages/bruno-electron/package.json @@ -3,6 +3,10 @@ "name": "bruno", "description": "Opensource API Client for Exploring and Testing APIs", "homepage": "https://www.usebruno.com", + "repository": { + "type": "git", + "url": "https://github.com/usebruno/bruno.git" + }, "private": true, "main": "src/index.js", "author": "Anoop M D (https://helloanoop.com/)",