-
-
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
Icon Size Recognized as 0x0 on Linux #5294
Comments
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This is a workaround for the electron-builder issue electron-userland/electron-builder#5294
This is a workaround for the electron-builder issue electron-userland/electron-builder#5294
I also had this issue, the electron build failed with The build was started on Ubuntu 22.04 in a Hyper-V. When we used the correct linux folder, the issue was gone (i..e copy the source files from the windows folder, install node modules, build everything, ..) |
This issue definitely seems like it should still be open... Could @mmaietta or someone from the team reconsider the stale / closed status? |
Would love to have a community contribution on this. Setting up a local dev environment is fairly straight forward too |
@mmaietta Sure, but are you willing to consider reopening the ticket status so both users and contributors know it's an active issue? |
Sure |
This is a workaround for the electron-builder issue electron-userland/electron-builder#5294
Same issue happens for appimages. The have the icons referenced as '0x0'. As a result appimagelint complains that there is no valid icon and the desktop icon shows a fallback image. My theory is that the png size is checked, but the path is not correctly resolved (or the icons is smaller that the requested 512x512 and as a consequence it uses (0,0) (aka some error check is missing). |
I think we're dealing with this code here during icon resolution electron-builder/packages/app-builder-lib/src/platformPackager.ts Lines 770 to 791 in b06c5ef
It's hard to track down errors with icon conversion though as it's happening in an upstream Golang binary https://github.com/develar/app-builder/blob/master/pkg/icons/icon-converter.go Might be worth re-exporting your icon or trying to use a different format converter. |
The icon file in the
.deb
generated byelectron-builder
is placed under/usr/share/icons/hicolor/0x0
(even if the file has the size in the name:512x512.png
), and thus not displayed properly by the desktop environment.The text was updated successfully, but these errors were encountered: