This repository has been archived on 2026-05-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
APPBase_Bck20251205_123340_337/.winboll/bashCommitAppPublishBuildFlagInfo.sh

18 lines
545 B
Bash
Raw Permalink 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.
#!/usr/bin/bash
## 提交新的 APK 编译配置标志信息并推送到Git仓库。
# 使用 `-z` 命令检查变量是否为空
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] || [ -z "$4" ]; then
echo "$0 Script parameter error."
echo "(Script Demo : [ bashCommitAppPublishBuildFlagInfo.sh <RootProjectDir> <VersionName> <BuildType Name> <RootProject Name> ])"
exit 2
fi
# 进入项目根目录
cd ${1}
echo -e "Work dir : \n"`pwd`
git add .
git commit -m "<$4>APK ${2} ${3} Publish."
git push origin && git push origin --tags