更新版本
This commit is contained in:
parent
ea046e83db
commit
15f56cfa87
@ -17,22 +17,34 @@ for /f "tokens=1,2,3 delims=." %%a IN (%configVersion%) Do (
|
|||||||
set tag2=%%b
|
set tag2=%%b
|
||||||
set tag3=%%c
|
set tag3=%%c
|
||||||
)
|
)
|
||||||
set /a tag3=1+%tag3%
|
|
||||||
set oldVersion=%tag1%.%tag2%.%tag3%
|
set oldVersion=%tag1%.%tag2%.%tag3%
|
||||||
|
|
||||||
|
::提交数据,并打包为节点
|
||||||
|
set verPath=%cd%
|
||||||
|
cd ..
|
||||||
|
set rootPath=%cd%
|
||||||
|
cd /d %rootPath%
|
||||||
|
set tagName=%oldVersion%_%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%
|
||||||
|
git tag -a %tagName% -m 建立节点
|
||||||
|
git push origin %tagName%
|
||||||
|
|
||||||
|
set /a tag3=1+%tag3%
|
||||||
|
set newVersion=%tag1%.%tag2%.%tag3%
|
||||||
|
|
||||||
::替换
|
::替换
|
||||||
set d=%date: =0%
|
set d=%date: =0%
|
||||||
set t=%time: =0%
|
set t=%time: =0%
|
||||||
|
|
||||||
set productname=%oldVersion%.%d:~2,2%%d:~5,2%%d:~8,2%%t:~0,2%%t:~3,2%%t:~6,2%
|
cd /d %verPath%
|
||||||
|
set productname=%newVersion%.%d:~2,2%%d:~5,2%%d:~8,2%%t:~0,2%%t:~3,2%%t:~6,2%
|
||||||
echo %productname%
|
echo %productname%
|
||||||
echo %productname%> version.txt
|
echo %productname%> version.txt
|
||||||
del /q *.panda
|
del /q *.panda
|
||||||
echo .>%oldVersion%.panda
|
echo .>%newVersion%.panda
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
del /q *.panda
|
del /q *.panda
|
||||||
echo .>%oldVersion%.panda
|
echo .>%newVersion%.panda
|
||||||
|
|
||||||
echo 执行成功,生成 v%oldVersion%
|
echo 执行成功,生成 v%oldVersion%
|
||||||
goto end
|
goto end
|
||||||
@ -41,6 +53,6 @@ goto end
|
|||||||
echo not as admin
|
echo not as admin
|
||||||
|
|
||||||
:end
|
:end
|
||||||
ping 127.0.0.1 -n 3 >nul
|
ping 127.0.0.1 -n 10 >nul
|
||||||
exit
|
exit
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user