Changing electron app icon on windows 10


I started working on an electron project. So I packaged it, I was following along with a tutorial. The problem is, the guy was using a mac, and I’m using a Toshiba laptop. When we got to the part where you change the icon of the application, I just couldn’t do it! What I was supposed to do was use a command that went like this.
rm -rf name of new build of app .
this took off the icon of the application for him, but not for me. The paths werernt the same, nothing was working, I even went to tutorials from people with windows, and nothing worked.
Please help me or point me to a better tutorial.



To begin to read electron documentation and packager library, you can find !

Do you used electron-packager or electron-builder to build your app ? Read documentation

In Mac, your must used *.icns picture.
That not the same for windows, you must used *.ico

If you used electron-packager, an example :
In your package.json, you must to have a script, by exemple to windows 64 bit

    "name": "myApp",
    "version": "0.0.1",
    "description": "my description",
    "main": "main.js",
    "scripts": {
        "start": "electron .",
        "build": "electron-packager . --out=dist/win --platform=win32 --arch=x64 --icon=images/favicon.ico --asar=true --overwrite"

With your cmd in this directory, write that : npm run build