From b9b2b0966c21344adf3b2f10ff771cdd9039cda8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A6=E5=90=9B?= <73606411+setube@users.noreply.github.com> Date: Thu, 25 Dec 2025 18:29:19 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=9E=84=E5=BB=BA=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E4=B8=AD=E6=98=BE=E5=BC=8F=E5=AE=89=E8=A3=85ImageMagick?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在GitHub Actions构建流程中新增ImageMagick安装步骤,确保生成Android图标时依赖环境一致,提升CI稳定性。 --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index de82fcc..a5e6aba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -88,9 +88,12 @@ jobs: pnpm install pnpm run build + - name: Install ImageMagick + run: sudo apt-get update && sudo apt-get install -y imagemagick + - name: Generate Android Icons run: | - # 使用 ImageMagick 生成各尺寸图标 (Ubuntu runner 已预装) + # 使用 ImageMagick 生成各尺寸图标 convert logo.png -resize 48x48 android/app/src/main/res/mipmap-mdpi/ic_launcher.png convert logo.png -resize 48x48 android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png convert logo.png -resize 72x72 android/app/src/main/res/mipmap-hdpi/ic_launcher.png