forked from extern/bruno
Merge pull request #204 from jeffprinty/enhancement/add-about-window
Issue #203 Add about-window to help menu
This commit is contained in:
commit
9b94cddc9b
@ -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",
|
||||
|
@ -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' }
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user