Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kashamalasha opened this issue Dec 28, 2023 · 0 comments
Open

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

kashamalasha opened this issue Dec 28, 2023 · 0 comments

Comments

@kashamalasha
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant