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.

[20.10.x] "icon directory [...]/build doesn't contain icons" when targetting linux/deb/x64

See original GitHub issue
  • Version: 20.10.5
  • Electron Version: 12.0.0
  • Electron Type (current, beta, nightly): current
  • Target: linux/deb/x64

Getting a build failure of electron-builder trying to load icons:

⨯ icon directory /home/avi/projects/electron-app/build doesn't contain icons
github.com/develar/app-builder/pkg/icons.CollectIcons
        /Volumes/data/Documents/app-builder/pkg/icons/collect-icons.go:73
github.com/develar/app-builder/pkg/icons.doConvertIcon
        /Volumes/data/Documents/app-builder/pkg/icons/icon-converter.go:191
github.com/develar/app-builder/pkg/icons.ConvertIcon
        /Volumes/data/Documents/app-builder/pkg/icons/icon-converter.go:66

My config is fairly simple:

{
  "appId": "com.test.electron-app",
  "productName": "electron-app",
  "directories": {
    "output": "./build"
  },
  "files": ["node_modules", "dist"],
  "asar": false,
  "linux": {
    "target": [
      {
        "target": "deb",
        "arch": ["x64"]
      }
    ]
  },
  "win": {
    "publisherName": "Test",
    "target": [
      {
        "target": "nsis",
        "arch": ["x64"]
      }
    ]
  },
  "mac": {
    "target": [
      {
        "target": "dmg",
        "arch": ["x64"]
      }
    ]
  }
}

v22.9.1 is the last working version when it doesn’t fail because of the icons. Needless to say, I don’t have any icons that I’m trying to set.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:6

github_iconTop GitHub Comments

2reactions
mmaiettacommented, Mar 8, 2021

Nice catch. Will fix this asap.

1reaction
aplonskacommented, Aug 20, 2021

@AviVahl looks like the problem was on my side. I had assets/icons folder with some images and when I changed the name of the directory everything worked smoothly.

Thank you for your help. Looks like this issue can be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to fetch security undetermined error [IP: 91.189.91.38 ...
Revert your repositories list to the original Ubuntu Focal list by running the following command in the terminal:
Read more >
Can't Add Icon To Electron App With Electron Builder
buildResources should include resource files like icons. If you are not going to set this buildResources manually then the default will be ...
Read more >
Package List — Spack 0.20.0.dev0 documentation
This is a list of things you can install using Spack. It is automatically generated based on the packages in this Spack version....
Read more >
Docker Desktop release notes - Docker Documentation
Fixed an issue where Compose v2 was not always enabled by default on Windows. Docker Desktop now deletes the C:\Program Files\Docker folder at...
Read more >
Lubuntu 20.04 Is an Absolute Nightmare of a Linux Distribution
Also, the same keyboard shortcuts issue is still there; You create a new shortcut, only to discover that it doesn't work. LXQt does...
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