Compare commits

..

11 Commits

Author SHA1 Message Date
8e515f208f 让定义更有意义,便于理解 2024-01-07 23:38:32 +08:00
7ae44f2ac8 修改错误 2024-01-07 23:37:02 +08:00
343e6b36f9 合并后版本 2024-01-07 23:30:59 +08:00
b97776030d 测试 2024-01-07 23:25:32 +08:00
7211ae634c 创建分支 代码标准模板.branch.v2.0.1 2024-01-07 23:23:09 +08:00
729806637b 修改错误 2024-01-07 23:22:36 +08:00
1d0cd4d6c2 添加版本 2024-01-07 23:06:38 +08:00
6cd7bbf86f Merge remote-tracking branch 'remotes/origin/branch.v2.0.0'
# Conflicts:
#	8.version/version.txt
#	8.version/建立版本.bat
2024-01-07 23:04:18 +08:00
d16c5fd19b 创建分支 代码标准模板.branch.v1.0.8 2024-01-07 22:17:11 +08:00
7722c4e68b 创建分支 代码标准模板.branch.v1.0.6 2024-01-07 22:06:53 +08:00
9861061df8 创建分支 代码标准模板.branch.v1.0.3 2024-01-07 21:51:15 +08:00
13 changed files with 71 additions and 11 deletions

View File

@ -1 +0,0 @@
ECHO 处于关闭状态。

View File

@ -1 +0,0 @@
.

View File

@ -1 +0,0 @@
ECHO 处于关闭状态。

View File

@ -1 +0,0 @@
.

View File

@ -1 +0,0 @@
ECHO 处于关闭状态。

View File

@ -1 +0,0 @@
.

View File

@ -1 +1 @@
2.0.0.022401205052 2.0.1

View File

@ -52,12 +52,14 @@ del /s /q %rootPath%\%appName%.master
del /s /q %rootPath%\%appName%.branch.* del /s /q %rootPath%\%appName%.branch.*
echo .>%rootPath%\%appName%.branch.v%newVersion% echo .>%rootPath%\%appName%.branch.v%newVersion%
set d=%date: =0%
set t=%time: =0%
set productname=%newVersion%.%d:~2,2%%d:~5,2%%d:~8,2%%t:~0,2%%t:~3,2%%t:~6,2% 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%>%versionPath%\version.txt echo %productname%>%versionPath%\version.txt
del /s /q %versionPath%\*.panda del /s /q %versionPath%\*.panda
del /s /q %rootPath%\*.panda del /s /q %rootPath%\*.panda
pause
cd /d %rootPath% cd /d %rootPath%
git add . git add .
git commit -m "创建分支 %appName%.branch.v%newVersion%" git commit -m "创建分支 %appName%.branch.v%newVersion%"

View File

@ -0,0 +1,64 @@
@echo off
chcp 65001
setlocal EnableDelayedExpansion
cd /d %~dp0
net.exe session 1>NUL 2>NUL && (
goto as_admin
) || (
goto not_admin
)
:as_admin
set versionPath=%cd%
cd ..
set rootPath=%cd%
::读取项目配置
set appName="xxxxx"
set file99=%rootPath%\config.txt
if exist %file99% (
for /f "tokens=*" %%a in (%file99%) do (
set var=%%a
if "!var:~0,16!"=="applicationName:" (
set appName=!var:~16,-1!!var:~-1,1!
)
)
set appName=!appName!
)
::检查是否主干项目
if not exist %rootPath%\%appName%.master (
echo 是否是合并后初始化
pause
echo .>%rootPath%\%appName%.master
)
del /s /q %rootPath%\%appName%.branch.*
::读取版本配置文件
cd /d %versionPath%
if not exist version.txt echo 1.0.0.20000101>version.txt
set configVersion=version.txt
for /f "tokens=1,2,3 delims=." %%a IN (%configVersion%) Do (
set tag1=%%a
set tag2=%%b
set tag3=%%c
)
set oldVersion=!tag1!.!tag2!.!tag3!
del /q %versionPath%\*.panda
del /q %rootPath%\*.panda
echo .>%versionPath%\%oldVersion%.panda
echo .>%rootPath%\%oldVersion%.panda
echo 执行成功
goto end
:not_admin
echo not as admin
:end
ping 127.0.0.1 -n 10 >nul
exit