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.

Electron-packager windows icon not being updated

See original GitHub issue

Im setting up my icon to my electron-packager cli, but its not working. I think theres some type of cache being saved somewhere. The icon is definitely working though. Whe I goto properties the icon is correct, but the main icon on the exe is showing the original electron app icon.

How can I change it heres the code im using for icon:

--icon=src/assets/icons/win/icon.ico

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
englishextracommented, Jan 15, 2017

@malept It’s not clear

  • is it already installed electron-packaged app
  • or is it only compiled not packed into installer

Also clear C:\Users.…\AppData\Local\IconCache.db

And drag compiled exe to desktop to see if default electron icon changes to that of yours

2reactions
maleptcommented, Jan 15, 2017

Just so I’m clear, when I say “caching issue”, I mean some sort of built-in Windows icon cache.

My inclination is that this problem does not originate with Electron Packager. This is because Electron Packager passes all of the win32 target icon information verbatim to the node-rcedit module. If it doesn’t have to do with the Windows icon cache, then it’s a bug either there or in rcedit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Electron-packager not setting icons - Stack Overflow
I am building on OSX for OSX & Windows. I've tried at least 20 variations on specifying the icon for electron-packager (the full...
Read more >
Changing electron app icon. Generate icns | by Khoa Pham
If app icon is not updated. I get a problem that electron always shows default app icon. I tried using png , NativeImage...
Read more >
electron-packager - npm
Customize and package your Electron app with OS-specific bundles (.app, .exe, etc.) via JS or CLI. Latest version: 17.1.1, last published: 2 ...
Read more >
npx electron-packager "Could not find icon" : r/electronjs - Reddit
npx electron-packager "Could not find icon". I'm trying to use electron-packager to build my app for MAC and Windows using the command:.
Read more >
Custom App Icons - Electron Forge
Configuring the path to your icon must be done in both package.json as well as in Electron's main process.
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