electron-typescript-react-mui icon indicating copy to clipboard operation
electron-typescript-react-mui copied to clipboard

Tray icon doesn't work in production

Open abury opened this issue 3 years ago • 1 comments

Hi Team,

Thanks for the fantastic starter project, it's saved a lot of time, but unfortunately I've lost probably more time trying to get the tray icon to work :(

I'm guessing it has something to do with way Webpack is setup, but I'm now on week 3 trying to get this to work.

The tray icon will show fine in development, but no matter what I do it will not show in production. I'm using a .ico file in the static folder, and the static folder is being copied into the packages/win-unpacked/resources folder. All the other images used in the app work, but the tray icon just won't.

Any thoughts on what the issue might be?

abury avatar Jan 03 '23 22:01 abury

I had a similar issue with Tray and I ended up just doing a base64 encode of the image and putting that directly into the file where tray was invoked, rather than trying to get the path to the image correct. . .not a great solution, but it worked.

thinkerytim avatar Apr 26 '24 02:04 thinkerytim