Skip to content

Add support for additional app icon formats #216

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

Merged

Conversation

WINBIGFOX
Copy link
Contributor

@WINBIGFOX WINBIGFOX commented May 1, 2025

Extended the InstallsAppIcon trait to copy .ico and .icns icon formats alongside existing ones. This ensures compatibility with platforms requiring these formats.

For macOS: icon.icns
For Windows: icon.ico
Fallback: icon.png

Doc PR: NativePHP/nativephp.com#119

Extended the InstallsAppIcon trait to copy .ico and .icns icon formats alongside existing ones. This ensures compatibility with platforms requiring these formats.
Copy link
Contributor

@gwleuverink gwleuverink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

Can you verify we don’t need to add these here too: https://github.com/NativePHP/electron/blob/main/src/Traits/InstallsAppIcon.php

If it isn’t coupled it might be a smell we can remove one of the two.

If it is, it wouldn’t be a bad idea to leave a comment that these two places must be kept in sync manually (or perhaps decouple it by using the internal config?)

@gwleuverink gwleuverink requested a review from a team May 3, 2025 18:49
@WINBIGFOX
Copy link
Contributor Author

@gwleuverink I don't know if I'm misunderstanding something here, but I made the change to the file you referred to

@gwleuverink
Copy link
Contributor

No you're right I was going over PR's and must have gotten some wires crossed. Approved!

@SRWieZ SRWieZ merged commit 1150575 into NativePHP:main May 3, 2025
26 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants