#Icon

31 messages · Page 1 of 1 (latest)

rich jasper
#

I am building an app using electron and I am having difficulty replacing the default icon. Anyone have any recommendations on how to fix this?

somber cloak
#

Read the documentation, make sure you are placing in the correct path the icon

rich jasper
#

Could you provide an example piece of code?

#

The highlighted portion is the code I tried

humble girder
rich jasper
#

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

somber cloak
#

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.

rich jasper
#

Isn’t that what I did?

#

I tried this instead as well and it didn’t work

rich jasper
#

I am in the development phase not the distribution phase so I guess asking how to do an icon overlay would be more appropriate

somber cloak
#

ok, yes.
"Building an app" has a different meaning.

somber cloak
# rich jasper

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

#

also I think it does not support the .icns format

rich jasper
rich jasper
rich jasper
somber cloak
rich jasper
#

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

rich jasper
#

All I need for Mac in reference to images is the dock image and the image next to the minimize/maximize options