Merge pull request #204 from jeffprinty/enhancement/add-about-window

Issue #203 Add about-window to help menu
This commit is contained in:
Anoop M D 2023-09-24 02:10:23 +05:30 committed by GitHub
commit 9b94cddc9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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' }
]
}
];