How to use the electron-util.aboutMenuItem function in electron-util

To help you get started, we’ve selected a few electron-util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github atomiclabs / hyperdex / app / menu.js View on Github external
url: 'mailto:hyperdex@protonmail.com',
		}),
		{
			label: t('help.reportIssue'),
			click() {
				openGitHubIssue('');
			},
		},
	];

	if (!is.macos) {
		helpSubmenu.push(
			{
				type: 'separator',
			},
			aboutMenuItem({
				icon: path.join(__dirname, 'static/icon.png'),
				// FIXME: Doing it like this for now so I don't have to update all the translations
				title: t('help.about', {appName: ''}).trim(),
				copyright: 'Copyright © Luke Childs',
			})
		);
	}

	return helpSubmenu;
};
github sindresorhus / caprine / source / menu.ts View on Github external
openNewGitHubIssue({
					user: 'sindresorhus',
					repo: 'caprine',
					body
				});
			}
		}
	];

	if (!is.macos) {
		helpSubmenu.push(
			{
				type: 'separator'
			},
			aboutMenuItem({
				icon: caprineIconPath,
				text: 'Created by Sindre Sorhus'
			})
		);
	}

	const debugSubmenu: MenuItemConstructorOptions[] = [
		{
			label: 'Show Settings',
			click() {
				config.openInEditor();
			}
		},
		{
			label: 'Show App Data',
			click() {
github lacymorrow / cinematic / .desktop / menu.js View on Github external
openNewGitHubIssue({
				user: 'lacymorrow',
				repo: 'cinematic',
				body
			})
		}
	}
]

if (!is.macos) {
	helpSubmenu.push(
		{
			type: 'separator'
		},
		aboutMenuItem({
			icon: path.join(__dirname, 'static', 'icon.png'),
			text: 'Created by Lacy Morrow'
		})
	)
}

const debugSubmenu = [
	{
		label: 'Show Settings',
		click() {
			shell.openItem(this.path);
		}
	},
	{
		label: 'Show App Data',
		click() {
github sarthology / caligator / menu.js View on Github external
openNewGitHubIssue({
				user: 'sarthology',
				repo: 'caligator',
				body
			});
		}
	}
];

if (!is.macos) {
	helpSubmenu.push(
		{
			type: 'separator'
		},
		aboutMenuItem({
			icon: path.join(__dirname, 'static', 'icon.png'),
			text: 'Created by Sarthak Sharma'
		})
	);
}

const debugSubmenu = [
	{
		label: 'Show Settings',
		click() {
			config.openInEditor();
		}
	},
	{
		label: 'Show App Data',
		click() {