Skip to content

Commit b9b2b09

Browse files
committed
ci: 构建流程中显式安装ImageMagick
在GitHub Actions构建流程中新增ImageMagick安装步骤,确保生成Android图标时依赖环境一致,提升CI稳定性。
1 parent 724a70b commit b9b2b09

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,12 @@ jobs:
8888
pnpm install
8989
pnpm run build
9090
91+
- name: Install ImageMagick
92+
run: sudo apt-get update && sudo apt-get install -y imagemagick
93+
9194
- name: Generate Android Icons
9295
run: |
93-
# 使用 ImageMagick 生成各尺寸图标 (Ubuntu runner 已预装)
96+
# 使用 ImageMagick 生成各尺寸图标
9497
convert logo.png -resize 48x48 android/app/src/main/res/mipmap-mdpi/ic_launcher.png
9598
convert logo.png -resize 48x48 android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
9699
convert logo.png -resize 72x72 android/app/src/main/res/mipmap-hdpi/ic_launcher.png

0 commit comments

Comments
 (0)