-
Is there a way to replace the default NativePHP icon when publishing an app? I looked through the configuration docs here: https://nativephp.com/docs/1/getting-started/configuration but don't see anyway to change the main icon. The only reference to changing an icon i see is on the menubar: https://nativephp.com/docs/1/the-basics/menu-bar#menu-bar-icon |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I couldn't find any configuration to do this but I got it working by overwriting the icon files in the package. "post-install-cmd": [
// ...
"cp resources/icons/Icon.png ./vendor/nativephp/electron/resources/js/resources/icon.png",
"cp resources/icons/Icon.png ./vendor/nativephp/electron/resources/js/build/icon.png"
],
"post-update-cmd": [
// ...
"cp resources/icons/Icon.png ./vendor/nativephp/electron/resources/js/resources/icon.png",
"cp resources/icons/Icon.png ./vendor/nativephp/electron/resources/js/build/icon.png"
], Of course, you need to create the |
Beta Was this translation helpful? Give feedback.
-
A quick update, I opened a PR for this which is a much smoother approach. Closing this thread as this will be merged soon. |
Beta Was this translation helpful? Give feedback.
A quick update, I opened a PR for this which is a much smoother approach. Closing this thread as this will be merged soon.