-
Notifications
You must be signed in to change notification settings - Fork 171
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
Fixed icons for linux direct install #130
Conversation
With testing it fixes this issue #106. If you install it using the gui, it doesn't show up but after installing it shows up in the menu which is what matters. |
Thank you @sekwah41 for the effort. But I did not see any difference. You just renamed the icon file and changed the category for linux packages. Did you try to build it first and test if it's working before modifying the code? |
That's actually all there is to it. I changed the Linux icon to point at the folder and then it looks for a icon file. It also looks for specific ones such as icon256x256.png. The issue was the rpm was outputting it to a folder called 0x0 which isn't a valid size. Now it outputs two. One in the 256x256 and another in 64x64 or something like that (I forget the other one) https://www.electron.build/icons#linux Try building them before and after and use something like 7zip to explore the packages. I can reinstall it to double check if you arn't seeing them pop up in the 256x256 folder like I mentioned. It's all just stuff to specify it how electron-builder wants it for it building tools. |
Though I'll have to test removing the 256x256 and see if the auto resizer fully kicks in |
Yes, I really appreciate what you did. Before these issues came up. The original code is like this; "icon": "./src/assets/logo-dark.png" I realized that this does not pointing to the correct build folder included in the packaging. So I changed it like this As we can see That's why I ask if you tried to build the code from the master's branch and test it if it works because I already modified it and the only thing that lacking is testing it to a real |
Ohhhhhhhhhh yea I tested it before. You need the name specifically to be icon not logo. It's weird but that's what fixed it. It's the actual name that's the problem. Also I pointed it to the folder as it auto detects the files named icon or if you add the Mac icons file. The current master branch does the 0x0 behaviour I mentioned before. Because of the extra behaviour it detects icon()X().PNG as explicit size files if you point to the folder. So that forces it to build with at least that icon size. |
I understand. If that's the only way to fix it. But we don't actually need to change the What we can do to not mess around with other files is renaming the And making it sure that it only affects the Please let me know your thought too about this. |
Checking and yea its all fine now on fedora with the new edits. |
Just to clarify I reverted the changes and made the specific edits you'd said :) that all works fine. |
Thank you @sekwah41 . Sorry for the late action. |
Fixed icons for linux direct install
Testing on fedora it fixes the issue. Id just verify that it doesn't mess up any of the other parts using snap or anything