Files
cozsweet-frontend-nextjs/scripts/release/pre_release_web.sh
T

32 lines
1.0 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# ==========================================
# 预发布脚本(Next.js
# 合并 dev 分支代码到 test worktree,并发布 Web 制品(测试环境)
# 原始 Dart: scripts/release/pre_release_web.sh
#
# 改动:
# - WORKTREE_PATH 改为 Next.js 项目对应 worktree
# - 删除图标复制(Next.js favicon 统一为 public/favicon.ico,不分 env
# ==========================================
# Test 分支 worktree 路径
WORKTREE_PATH="/Users/chase/Documents/cozsweet-frontend-nextjs.worktrees/cozsweet-test"
echo "=== 进入 test 分支 worktree ==="
cd "$WORKTREE_PATH"
echo "=== 检查当前分支 ==="
git branch --show-current
echo "=== 合并 dev 分支 ==="
git merge dev
# 注:原 Dart 版会复制 icons/test/favicon.ico + Icon-{192,512}.png 到 web/
# Next.js 项目 public/favicon.ico 是单一资产,不分 env,无需复制。
# 如未来需要 env-specific 图标,再加 cp 步骤。
echo "=== 执行构建部署脚本(测试环境)==="
./scripts/deploy/deploy_web_test.sh
echo "=== 预发布完成 ==="