-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmenu.ts
29 lines (29 loc) · 918 Bytes
/
menu.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { app, shell, Menu, MenuItem } from 'electron';
const template: (Electron.MenuItemConstructorOptions | MenuItem)[] = [
{
label: app.name,
submenu: [
{ role: 'about' },
{ type: 'separator' },
{
label: 'Website',
click: async (): Promise<void> => {
await shell.openExternal('https://github.com/amorist/kanban-musume-desktop')
}
},
{
label: 'Author',
click: async (): Promise<void> => {
await shell.openExternal('https://github.com/amorist')
}
},
{ type: 'separator' },
{ role: 'hide' },
{ role: 'unhide' },
{ type: 'separator' },
{ role: 'quit' }
]
}
]
const menu = Menu.buildFromTemplate(template)
export = menu;