Files
CC-Framework.Commercialization/Update Upm.bat
2023-01-28 12:41:57 +08:00

22 lines
430 B
Batchfile
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.
@echo off
color a
echo 开始提交到git upm....
echo 提交upm前请确保当前分支的所有改动都已经提交
:setVersion
set /p var=请输入本次提交Upm版本号 --------
set /p Flg=确认提交的版本号%var%,是否开始提交(y/n) -------- :
IF "%Flg%" equ "y" (
echo 开始提交,请勿关闭该窗口!
git subtree split --prefix=Assets --branch upm
git tag %var% upm
git push origin upm --tags
GOTO :END
)
GOTO :setVersion
:END
echo 执行完毕!
pause
exit