Issue #203 Add about-window to help menu

This commit is contained in:
Jeff Printy 2023-09-22 23:13:54 -05:00
parent 1c89ab3450
commit aea1cbba9e
2 changed files with 15 additions and 1 deletions

View File

@ -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",

View File

@ -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' }
]
}
];