electron-icon-maker icon indicating copy to clipboard operation
electron-icon-maker copied to clipboard

AppIcon.icns doesn't work properly with the electron-builder

Open kashamalasha opened this issue 1 year ago • 0 comments

The app works perfectly, it generates all the necessary icons for the application based on the 1024x1024 png file with the following command:

electron-icon-maker --input=./asset/main_icon.png --output=./asset

But the AppIcon.icns for some reason doesn't work fine with the macOS build after building it using electron-builder with the following params:

"mac": {
      "notarize": false,
      "hardenedRuntime": true,
      "gatekeeperAssess": false,
      "icon": "asset/icons/mac/AppIcon.icns",
      "entitlements": "build/entitlements.mac.plist",
      "entitlementsInherit": "build/entitlements.mac.plist",
      "category": "public.app-category.health",
      "target": [
        {
          "target": "default",
          "arch": [
            "x64",
            "arm64"
          ]
        }
      ]
    },

but it works fine, if I generate the .icns file using this tool: https://github.com/onmyway133/IconGenerator

kashamalasha avatar Dec 28 '23 12:12 kashamalasha