chore: reorganize icons for environment-specific deployment

Move environment-specific icons into dedicated directories (icons/develop, icons/test, icons/production) and update release scripts to copy the appropriate icon set (favicon.ico, Icon-192.png, Icon-512.png) into public/ for each target environment. Update manifest.json to reference the new /images/icons/ path.
This commit is contained in:
2026-06-12 14:33:37 +08:00
parent 64fad08c4a
commit e2abe03a33
11 changed files with 14 additions and 9 deletions
+6 -3
View File
@@ -6,7 +6,7 @@
#
# 改动:
# - WORKTREE_PATH 改为 Next.js 项目对应 worktree
# - 删除图标复制Next.js favicon 统一为 public/favicon.ico,不分 env
# - 图标复制路径适配 Next.jsicons/production/icons/Icon-*.png
# ==========================================
# Main 分支 worktree 路径
@@ -21,8 +21,11 @@ git branch --show-current
echo "=== 合并 dev 分支 ==="
git merge dev
# 注:原 Dart 版会复制 icons/production/favicon.ico + Icon-{192,512}.png 到 web/
# Next.js 项目 public/favicon.ico 是单一资产,不分 env,无需复制。
# 复制生产环境图标(source: icons/production → dest: public/
echo "=== 复制生产环境图标(icons/production → public/ ==="
cp -f icons/production/favicon.ico public/favicon.ico
cp -f icons/production/icons/Icon-192.png public/images/icons/Icon-192.png
cp -f icons/production/icons/Icon-512.png public/images/icons/Icon-512.png
echo "=== 执行构建部署脚本 ==="
./scripts/deploy/deploy_web.sh