Skip to content

Can not build success cause of icon set #485

Open
@JungleHH

Description

@JungleHH

I set my icon in package.json as

build": {  
      "productName": "xx",  
      "appId": "xxx.xx.xx",  
      "win": {  
        "icon": "icon.png" 
      }, 
      "nsis": { 
        "oneClick": false, 
        "guid": "idea", 
        "perMachine": true, 
        "allowElevation": true, 
        "allowToChangeInstallationDirectory": true, 
        "installerIcon": "icon.png", 
        "uninstallerIcon": "icon.png", 
        "createDesktopShortcut": true, 
        "createStartMenuShortcut": true, 
        "shortcutName": "idea" 
      } 
    }

whatever image i set , it throws error failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE and Error while loading icon from "xxxxxxxxxx\webapp\icon.png": invalid icon file.
I know this error comes from NSIS, but I have used NSIS which installed on my computer to package other application with this .png file.
so, what should I set the shortcut icon correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions