How to Change ElectronJS App default Icon?
问题 I am new to electronjs. I want to convert an angular app to desktop. I could achieve it successfully but the problem is that the app icon is set to default electron and not the icon I provided as follows: win = new BrowserWindow({ width: 600, height: 670, icon: `${__dirname}/dist/assets/imgs/logo.png` }) I changed the icon after building the app using resource hacker but what I need is to change it at build time in the correct way. what am I missing> 回答1: In main.js, specify icon win = new