Automatic Use of Website Favicon as App Icon
Search before asking
Motivation
While using Pake for testing, I wanted to set the website's favicon as the application icon. However, I found the process somewhat... "cumbersome"—manually downloading the favicon, converting it to a .icns format (for macOS, for example), and then applying it. That was a bit long to do it
Solution
An automated solution could simplify this by detecting the highest-resolution favicon, downloading it, converting it to compatible icon formats for Windows, Linux, and macOS, and then using it as the app icon for the Pake build.
Alternatives
No response
Anything else?
I'm open to submitting a PR for this feature but wanted to get your thoughts first. Do you think this would be a useful addition to the project?
Are you willing to submit a PR?
- [X] I'm willing to submit a PR!
It makes sense. In terms of usability, Pake needs to continue to think about how to simplify parameters and make it easy to use by default. This will be included in the subsequent optimization, but I need to think about how to achieve it better, because the icons of most websites are actually not standardized and the effect is also very poor.
Maybe this can be optional like --use-favicon-as-icon
You can use npm i pake-cli@latest -g to install version 3.2.13.
I finally achieved it. When no icon is uploaded, it will automatically download the appropriate icon image and automatically change it to the icon. Then you don’t need to do anything. Try it now.