Skip to content

图标文件格式导致在线编译打包失败,有没有什么好办法? #466

Answered by IzualYang
IzualYang asked this question in Q&A
Discussion options

You must be logged in to vote

目前是用imagemagick的convert转成ico,然后扔到克隆出来的Pake项目的ico目录下,拿github当网盘
D:\tools\ImageMagick\convert.exe -background transparent "deepl.png" -define icon:auto-resize=16,24,32,48,64,72,96,128,256 "D:\tools\Pake\ico\deepl.ico"

等等,我问下ChatGPT能不能帮我写个Github Action……
大致就是下面这样了,创建inputico两个目录 → 往工作流里投喂域名或url → 到ico/list.md收取图标地址 甚至可以命令行操作

name: Download and Convert Icon
on:
  workflow_dispatch:
    inputs:
      domain:
        description: 'Enter the domain name or URL to download the icon'
        required: true

jobs:
  download-convert-icon:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout repository
      uses: actions/checkout@v3

    - name: Extract domain name from URL
      run: echo "…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by IzualYang
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants