Skip to content

The IconTemplate.png overrides my icons when I package my app #468

@cassidoo

Description

@cassidoo

Description

I have the following code for my simple app:

const { menubar } = require("menubar");
const path = require("path");

const mb = menubar({
	browserWindow: {
		width: 420,
		height: 520,
	},
	icon: path.join(__dirname, "extraResources", "icon.png"),
	tooltip: "Tester",
});

This works perfectly in development, but when I package this with Electron Forge, my tray icon only shows the IconTemplate.png.

Steps to Reproduce the Problem

  1. Use any icon for the tray
  2. Package the app
  3. The icon is using the IconTemplate.png file, not mine.

Expected Behaviour

My icon should appear in "production", not the default.

Specifications

  • Menubar version: latest
  • Platform: Mac + Windows
  • Electron version: v28.2.1

Other information

My app is a plain HTML file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions