question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

icon directory doesn't contain icons

See original GitHub issue
  • Version: 20.38.4
  • Target: I don’t know if this is a bug or configuration problem, but when I package the app with command -> npm run build:prod && electron-builder build --windows, I’m getting error after packaging

image

This is the stack image

For the config

In my electron-builder.json

"win": {
    "icon": "dist",
    "target": [
      "portable"
    ]
  }

In my angular.json image

Also, I can see favicon.ico in my /dist folder image

I also tried .png icon… Could this be related to https://github.com/electron-userland/electron-builder/issues/3232 Am I missing something? Thanks for any help!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

8reactions
Aarbelcommented, Apr 11, 2019

Ok found a solution:

  1. You should use png instead of ico (i also had a unknown output format set error)
  2. You should add this in your package.json:
build: {
	…
    "linux": {
      "category": "TODO: fill here the category of your app",
      "icon": "build/1024x1024.png or any route to the right png file > 256px X 256px",
      "target": [
        "AppImage"
      ]
    },
}
0reactions
stale[bot]commented, Jul 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

will not recognise downloaded icons as icon files
when use personalise to try and change icons will not recognise downloaded icons as icon files when click on (my icons folder) name...
Read more >
Icons - electron-builder
Linux icon set will be generated automatically based on the macOS icns file or common icon.png . Or you can put them into...
Read more >
Icons resources dont work in small and list sizes - c++
I have tried to google information about sizes of icons for this specifications, but it seems correctly. What i do incorrect ? c++...
Read more >
ICO (file format) - Wikipedia
The ICO file format is an image file format for computer icons in Microsoft Windows. ICO files contain one or more small images...
Read more >
Extract icon/cursor stored in EXE, DLL, OCX, CPL files - NirSoft
IconsExtract v1.47 - EXE/DLL/OCX/CPL icon grabber/extractor ... All the selected icons will be saved into the folder you have selected.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found