05674264b8
Update WORKTREE_PATH in release scripts to include "nextjs" prefix in directory names (cozsweet-nextjs-test and cozsweet-nextjs-main) and remove outdated comment blocks from both pre_release_web.sh and release_web.sh.
25 lines
766 B
Bash
Executable File
25 lines
766 B
Bash
Executable File
#!/bin/bash
|
||
|
||
# Main 分支 worktree 路径
|
||
WORKTREE_PATH="/Users/chase/Documents/cozsweet-frontend-nextjs.worktrees/cozsweet-nextjs-main"
|
||
|
||
echo "=== 进入 main 分支 worktree ==="
|
||
cd "$WORKTREE_PATH"
|
||
|
||
echo "=== 检查当前分支 ==="
|
||
git branch --show-current
|
||
|
||
echo "=== 合并 dev 分支 ==="
|
||
git merge dev
|
||
|
||
# 复制生产环境图标(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
|
||
|
||
echo "=== 发布完成 ==="
|