I can’t make an icon in the Electron app on Windows 10.
I put a png file in the main folder and assigned it to the icon property, to Electron/icon and VoltBuilder/icon.
I tested on sizes 524 and 1024, png and ico
Please help
I can’t make an icon in the Electron app on Windows 10.
I put a png file in the main folder and assigned it to the icon property, to Electron/icon and VoltBuilder/icon.
I tested on sizes 524 and 1024, png and ico
Please help
I just tried the sample which comes with AppStudio. The icon appears properly. Can you try that to see if it works for you?
PS. The icon size should be 512, not 524. Is that just a typo in your message?
Yes, I have 512, that’s a typo.
I found the instructions here: Using Node and Electron to build Desktop Apps - NSB App Studio
Could you explain it to me in more detail, or maybe I could get your example?
Thanks in advance
Check out the ElectronWeather sample which is installed with AppStudio.
What icon is appearing for the app you built with Electron?
I’ve tried everything, it’s still the standard electron icon
I run it using the menu: Run/Run Desktop App using Electron or Run/Make Desktop App for Distribution using Electron
Not sure what is going on here…
Can you confirm you’re testing with the sample, not your own app?
Can you send a screenshot of the icon?
In the AppStudio About screen, there is an option to View Logs. Can you see if the log has any information about the icon?
To run: menu/Run/Run Desktop App using Electron I need to save ‘ElectronWeather’ on disk.
Now I run it by command: menu/Run/Run Desktop App using Electron
and this is how the running application looks like. The icon on the windows bar and the icon in the upper left corner of the application is different than “512.png” (this is in Electron/icon(524) )
This is the log:
2025-06-25 18:30:10,579 - appstudio.editor.design - ERROR - Raw map: {'ContainerAbsolute': [0, 0, 1280, 0], 'ContainerMenuContext': [3, 3, 114, 114], 'ContainerMenuContextAdd': [8.699999809265137, 8.699999809265137, 102.5999984741211, 34.19999694824219], 'ContainerMenuContextEdit': [8.699999809265137, 42.89999771118164, 102.5999984741211, 34.20000076293945], 'ContainerMenuContextDel': [8.699999809265137, 77.0999984741211, 102.5999984741211, 34.19999694824219], 'ContainerFoMa': [0, 0, 1280, 800], 'ContainerHeaderFoMa': [0, 0, 1280, 60], 'ContainerLeft': [10, 10, 197.859375, 39], 'ImageHeader': [10, 9.5, 40, 40], 'LabelHeader': [70, 10.75, 137.859375, 37.5], 'ContainerConfig': [1196, 10, 74, 39], 'ContainerDarkmode': [1196, 13.5, 32, 32], '': [0, 0, 0, 0], 'ContainerPoziompion': [1238, 13.5, 32, 32], 'ContainerMenuFoMa': [0, 60, 1280, 60], 'ContainerTermometry': [10, 71, 187.046875, 38], 'LabelTermometry': [10, 78, 77.046875, 24], 'SelectTermometry': [97.046875, 71, 100, 38], 'SelectTermometry_badge': [0, 0, 0, 0], 'SelectTermometry_contents': [96.046875, 71, 101, 38], 'SelectTermometry_0': [0, 0, 0, 0], 'SelectTermometry_1': [0, 0, 0, 0], 'SelectTermometry_2': [0, 0, 0, 0], 'SelectTermometry_3': [0, 0, 0, 0], 'SelectTermometry_4': [0, 0, 0, 0], 'ContainerMiesiac': [207.046875, 71, 212.8125, 38], 'LabelMiesiac': [207.046875, 78, 52.8125, 24], 'SelectMiesiac': [269.859375, 71, 150, 38], 'SelectMiesiac_badge': [0, 0, 0, 0], 'SelectMiesiac_contents': [268.859375, 71, 151, 38], 'SelectMiesiac_0': [0, 0, 0, 0], 'ButtonWyswietl': [429.859375, 71, 88.578125, 38], 'ButtonWyswietl_icon': [442.859375, 79, 0, 21], 'ButtonWyswietl_badge': [0, 0, 0, 0], 'ContainerMainFoMa': [0, 120, 1280, 590], 'ContainerTableSumaDni': [10, 130, 1260, 0], 'ContainerTable1FoMa': [10, 130, 1260, 0], 'ContainerThead1FoMa': [10, 130, 1260, 0], 'ContainerTbody1FoMa': [10, 130, 1260, 0], 'ContainerTableDni': [10, 140, 1260, 0], 'ContainerTable2FoMa': [10, 140, 1260, 0], 'ContainerThead2FoMa': [10, 140, 1260, 0], 'ContainerTbody2FoMa': [10, 140, 1260, 0], 'ContentButtons': [0, 710, 1280, 60], 'ButtonAdd': [970.796875, 720, 94.390625, 40], 'ButtonAdd_icon': [983.796875, 729, 0, 21], 'ButtonAdd_badge': [0, 0, 0, 0], 'ButtonEdit': [1075.1875, 720, 96.5625, 40], 'ButtonEdit_icon': [1088.1875, 729, 0, 21], 'ButtonEdit_badge': [0, 0, 0, 0], 'ButtonDel': [1181.75, 720, 88.25, 40], 'ButtonDel_icon': [1194.75, 729, 0, 21], 'ButtonDel_badge': [0, 0, 0, 0], 'ContainerFooterFoMa': [0, 770, 1280, 30], 'ContainerAQi': [1127.546875, 774.25, 132.453125, 22.5], 'Modal1': [0, 0, 0, 0], 'Modal1_header': [0, 0, 0, 0], 'Modal1_title': [0, 0, 0, 0], 'Modal1_badge': [0, 0, 0, 0], 'Modal1_addChild': [0, 0, 0, 0], 'Modal1_footer': [0, 0, 0, 0], 'ContainerMobile': [0, 0, 0, 0], 'Container1ModalDateTime': [0, 0, 0, 0], 'LabelModalCzas': [0, 0, 0, 0], 'InputModalDate_wrapper': [0, 0, 0, 0], 'InputModalDate': [0, 0, 0, 0], 'InputModalTime_wrapper': [0, 0, 0, 0], 'InputModalTime': [0, 0, 0, 0], 'LabelModalTemperatura': [0, 0, 0, 0], 'InputTemperatura_wrapper': [0, 0, 0, 0], 'InputTemperatura': [0, 0, 0, 0], 'ButtonModalOk': [0, 0, 0, 0], 'ButtonModalOk_icon': [0, 0, 0, 0], 'ButtonModalOk_badge': [0, 0, 0, 0], 'ContainerModalFooter': [0, 0, 0, 0]}
2025-06-25 19:41:54,318 - appstudio.editor.design - ERROR - Raw map: {'Button1': [91, 133, 73.5, 38], 'Button1_icon': [104, 141, 0, 21], '': [104, 141, 47.5, 21], 'Button1_badge': [0, 0, 0, 0]}
2025-06-25 19:43:05,389 - appstudio.editor.design - ERROR - Raw map: {'Button1': [91, 133, 73.5, 38], 'Button1_icon': [104, 141, 0, 21], '': [104, 141, 47.5, 21], 'Button1_badge': [0, 0, 0, 0]}