#Icon
31 messages · Page 1 of 1 (latest)
Read the documentation, make sure you are placing in the correct path the icon
Could you provide an example piece of code?
The highlighted portion is the code I tried
Does it work if you try this? https://www.electron.build/icons.html
Tried to create a build directory with the Icon option and it is still the default image
Does my path to the .icns file look good?
I am trying to change the Icon in the Mac dock
icon String | “undefined” - The path to icon (.icns for MacOS and .ico for Windows), relative to build (build resources directory). Defaults to ${firstExt}.icns/${firstExt}.ico (if several extensions specified, first is used) or to application icon.
I am in the development phase not the distribution phase so I guess asking how to do an icon overlay would be more appropriate
ok, yes.
"Building an app" has a different meaning.
but in response for change icons on build, what you did first is fine, but I don't think you stated your resources directory
it is quite difficult to discern, because you took a picture of a screen instead of taking a screenshot or directly sharing the code.
now for the window icon, it seems that you are using the wrong path __dirname
The __dirname string points to the path of the currently executing script
https://nodejs.org/api/modules.html#__dirname
also I think it does not support the .icns format
So with the code in that image once I package it into a .exe or .app the icon should be the custom one and not the default electron icon
Window icon is in reference to the icon that shows up next to the minimize options etc not the one in the dock correct?
Do you mean the __dirname?
Icon window
Wouldn’t I just need to use a .png format?
Also what do you mean by icon window? I think I’m thinking of something else
Also am I correct?
All I need for Mac in reference to images is the dock image and the image next to the minimize/maximize options