Setting icon for Mac still shows default icon
See original GitHub issue- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project follows, as appropriate.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
Please describe your issue:
I followed https://blog.macsales.com/28492-create-your-own-custom-icons-in-10-7-5-or-later
Then I ran
Console output when you run electron-packager with the environment variable DEBUG=electron-packager
. Please include the stack trace if one exists.
~/Desktop/out/electron-packager ~/code/electron-quick-start/ QuantumPilot --platform=all --icon=../QuantumPilot.iconset/
Packaging app for platform darwin x64 using electron v0.36.11
Packaging app for platform linux x64 using electron v0.36.11
Packaging app for platform mas x64 using electron v0.36.11
WARNING: signing is required for mas builds. Provide the osx-sign option, or manually sign the app later.
Packaging app for platform win32 x64 using electron v0.36.11
Wrote new apps to:
/Users/quantum/Desktop/out/QuantumPilot-darwin-x64
/Users/quantum/Desktop/out/QuantumPilot-linux-x64
/Users/quantum/Desktop/out/QuantumPilot-mas-x64
/Users/quantum/Desktop/out/QuantumPilot-win32-x64
<!-- For bugs and questions, please answer these questions to the best of your ability. -->
What command line arguments are you passing? Alternatively, if you are using the API, what
parameters are you passing to the packager()
function?
--icon="../QuantumPilot.iconset/"
Please provide either a failing minimal testcase (with a link to the code) or detailed steps to reproduce your problem. Using electron-quick-start is a good starting point.
The app icon still shows the default. How do I make custom icons?
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Set View Option Defaults for Icon Size an… - Apple Community
On your Mac, click the Finder icon in the Dock to open a Finder window. Select the folder you want to change, then...
Read more >How to restore icons default on mac
In Mac OS X you restore your files/folders original icon easily. First of all select your folder/file in Finder, then right click on...
Read more >Icons remains the same after I have changed the default ...
But this solution worked: Reset icon cache on MacBook. Nevertheless, changing the default application for a file type via Finder's "Open with…
Read more >How to Fix Windows 10 Not Showing App Icons in the Taskbar
3. Check the Taskbar Settings. If Windows 10 doesn't display certain icons within the taskbar, you should check your taskbar's settings. · 4....
Read more >How to Always Show Window Title Proxy Icons on Mac
How to Always Show Window Title Bar Icons on Mac · Go to the Apple menu and choose “System Preferences” · Go to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The default icon still shows when I launch the app during development. I’m not using a package installer at this stage. I’m just running npm start from the command line. Changing the app icon use to work but this morning I upgraded Electron to the latest version (1.7.9) and the default always shows. I’m running this on a Mac.
I simply replaced the electron.icns file with my custom icon. This file is located under:
/usr/local/lib/node_modules/electron/dist/Electron.app/Contents/Resources/electron.icns
Restarting the app or my computer didn’t help either. Interestingly, if I click on:
/usr/local/lib/node_modules/electron/dist/Electron.app
the icon shows in Finder’s preview pane although the default icon is showing in the left pane next to the app’s executable. My custom icon also shows if you bring up the Info pane for the app.
UPDATE:
I was able to solve this. When I converted my png file to icns, my png was 512 x 512. I then increased the size to 1024 x 1024 and then converted it to icns. It appears that something changed in electron since my previous version of electron that now requires a higher resolution image.
http://stackoverflow.com/questions/12306223/how-to-manually-create-icns-files-using-iconutil