diff --git a/package.json b/package.json index 3aef7fa1..ced62e60 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@faker-js/faker": "^7.6.0", "@jest/globals": "^29.2.0", "@playwright/test": "^1.27.1", + "about-window": "^1.15.2", "husky": "^8.0.3", "jest": "^29.2.0", "pretty-quick": "^3.1.3", diff --git a/packages/bruno-electron/src/app/menu-template.js b/packages/bruno-electron/src/app/menu-template.js index 2e3beb82..3c19599d 100644 --- a/packages/bruno-electron/src/app/menu-template.js +++ b/packages/bruno-electron/src/app/menu-template.js @@ -1,4 +1,6 @@ const { ipcMain } = require('electron'); +const openAboutWindow = require('about-window').default; +const { join } = require('path'); const template = [ { @@ -42,7 +44,18 @@ const template = [ }, { role: 'help', - submenu: [{ label: 'Learn More' }] + submenu: [ + { + label: 'About Bruno', + click: () => + openAboutWindow({ + icon_path: join(__dirname, '../../resources/icons/png/128x128.png'), + homepage: 'https://www.usebruno.com/', + package_json_dir: join(__dirname, '../..') + }) + }, + { label: 'Learn More' } + ] } ];