-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Confusion with the icons #1399
Comments
You should not do it in runtime. See https://github.com/electron-userland/electron-builder#quick-setup-guide Please, please follow guide and defaults.
The Linux icon set will be generated automatically based on the macOS icns file (or you can put them into the build/icons directory if you want to specify them yourself. The filename must contain the size (e.g. 32x32.png) of the icon). Or read all "icon" options in the https://github.com/electron-userland/electron-builder/wiki/Options if you don't want to follow defaults and want to explicitly set all icons. |
Is there an option for me to change the default build directory for icons? My build directory is listed in .gitignore. |
|
OK. I did what you suggested. But it looks like it did not work for me, it still uses the default icon. I used the buildResources option to change the default directory:
And in this directory you have the files:
The file icon.png measures 512x512. I also have a folder icons with the files:
Before I received the following alert: Now I do not receive more. It means that the icons have been located. |
Thanks for clear report. I will check. Please set env DEBUG=electron-builder and attach log of the terminal output. (please update electron-builder to 16.2.1) |
Here is debug log:
I upgraded the electron-builder to version 16.3.0. On windows worked as expected. In linux I still can not solve the problem. Follow the images below. |
Can you consider this issue as open? |
I still doesn't have time to investigate. I will try to find time in 2 days. |
windows, macOS — icon correctly set. |
The documentation still isn't very clear on how to handle icons. It took me quite a bit of searching to figure out that I needed to make an assets/build folder along with NOT having a leading slash in front of the 'buildResources' path in the package.json, as @develar posted above. Really think the documentation should have examples. Really does help clarify things. Don't find Electron Builder's docs to be very intuitive. |
Seriously the docs for this are reallyyy bad. @brett84c I'm going to try that now, hopefully it works. Getting kinda tired of fighting this extremely simple thing. |
@brett84c you are now my favorite person. Thanks for posting this |
@brett84c It is no-go way. What's better — add checks (to assist) and support intuitive forms. So — post issue in the form: 1) code to reproduce (config?) 2) expected 3) actual So, instead of documenting pitfall, I will fix the root cause. |
I'm kind of lost ... sorry if the question is stupid but I need help.
My project is this one: https://github.com/miguelsmuller/centro-de-estudos
I set the icons for linux, windows and mac in main.js file. But it happens the following:
In linux: File icon and docker icon is electron standard.
In windows: The file icon is the default of the electron. The icon in docker is the one configured in main.js.
I know I have to configure the electron-builder icon as well. But what the responsibilities of each one. How to configure the icons correctly?
The text was updated successfully, but these errors were encountered: