Pake icon indicating copy to clipboard operation
Pake copied to clipboard

Automatic Use of Website Favicon as App Icon

Open TeoConan opened this issue 1 year ago • 2 comments

Search before asking

  • [X] 我在 issues 列表中搜索,没有找到类似的内容。 I searched in the issues and found nothing similar.

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!

TeoConan avatar Nov 07 '24 21:11 TeoConan

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.

tw93 avatar Dec 19 '24 12:12 tw93

Maybe this can be optional like --use-favicon-as-icon

eznix86 avatar Jan 03 '25 07:01 eznix86

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.

tw93 avatar Aug 22 '25 08:08 tw93