Skip to content

Add support for additional app icon formats#216

Merged
SRWieZ merged 1 commit intoNativePHP:mainfrom
WINBIGFOX:Add-support-for-additional-app-icon-formats
May 3, 2025
Merged

Add support for additional app icon formats#216
SRWieZ merged 1 commit intoNativePHP:mainfrom
WINBIGFOX:Add-support-for-additional-app-icon-formats

Conversation

@WINBIGFOX
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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