T
T
Taras Labiak2016-12-28 13:34:57
Webkit
Taras Labiak, 2016-12-28 13:34:57

How to set an icon in Electron in macOS?

How to set an icon in an Electron application that is shown in the dock and alt-tab?

new BrowserWindow({icon: __dirname + '/images/icon.png'})
and setOverlayIcon('/images/icon.png', 'Application')doesn't work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Ivanov, 2016-12-28
@splincodewd

for windows - ico
for linux - png
for os x - icns
you will need to write the system definition code into a variable and substitute the extension type (if you want everything cross-platform)
image converter for os x:
https://iconverticons.com/online/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question