1 Star 0 Fork 4

冰点/lottie-android

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
version.sh 636 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
git diff-index --quiet HEAD --
if [ $? -ne 0 ]; then
echo "Working tree must be empty before bumping the version"
fi
sed -i '' "s/ versionName \".*\"/ versionName \"$1\"/" lottie/build.gradle
sed -i '' "s/ versionName \".*\"/ versionName \"$1\"/" LottieSample/build.gradle
versionCode=$((`cat LottieSample/build.gradle | grep versionCode | awk '{print $2}'` + 1))
sed -i '' "s/ versionCode .*/ versionCode $versionCode/" LottieSample/build.gradle
sed -i '' "s/VERSION_NAME=.*/VERSION_NAME=$1/" gradle.properties
git add -A
git commit -m "v$1"
git tag "v$1"
git push --follow-tags
git push origin v$1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/freezing-point-zhangzhen/lottie-android.git
git@gitee.com:freezing-point-zhangzhen/lottie-android.git
freezing-point-zhangzhen
lottie-android
lottie-android
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385