compile文件

This commit is contained in:
北枳 2025-07-14 16:54:53 +08:00
parent bc64add617
commit d2c02faae5

View File

@ -1,6 +1,6 @@
#!/bin/bash
BRANCH_NAME="pre"
BRANCH_NAME="dev"
# 修改项目名称
PROJECT_NAME="video-flow-$BRANCH_NAME-frontend"
@ -14,9 +14,9 @@ echo "Build process started at $(date)" | tee $LOGFILE
# 获取当前分支名
current_branch=$(git rev-parse --abbrev-ref HEAD)
# 打包之前,需要检查是否在 pre 分支,工作区是否干净,是否和远程分支一致
# 打包之前,需要检查是否在 dev 分支,工作区是否干净,是否和远程分支一致
if [ "$(git branch --show-current)" != "$BRANCH_NAME" ]; then
echo "当前分支不是 pre 分支"
echo "当前分支不是 dev 分支"
exit 1
fi