构建系统

This commit is contained in:
潘佳 2024-01-04 16:28:36 +08:00
parent e6c2d30cba
commit 294bca5a00
2 changed files with 33 additions and 6 deletions

View File

@ -23,6 +23,8 @@ if '%pWebChat%'=='' (
set pWebChat=1
)
set rootPublished=D:\SATLIC.COM.CLOUD.UI_ADMIN
set appName=云端后台管理界面
cd ..
@ -33,6 +35,28 @@ set rootDist=%rootCodePath%\dist
set versionBat=%cd%\8.version\每次编译.bat
set versionFile=%cd%\8.version\versiontemp.txt
::读取配置
set file99=%cd%\config.txt
for /f "tokens=*" %%a in (%file99%) do (
set var=%%a
if "!var:~0,16!"=="applicationName:" (
echo ==
set appName=!var:~16,-1!!var:~-1,1!
)
if "!var:~0,16!"=="applicationCode:" (
set appCode=!var:~16,-1!!var:~-1,1!
)
if "!var:~0,10!"=="published:" (
set rootPublished=!var:~10,-1!!var:~-1,1!
)
)
set rootPublished=!rootPublished!.!appCode!
set appName=!appName!
set appCode=!appCode!
echo 准备版本号
start %versionBat%>nul
for /f "tokens=1,2,3 delims=." %%a IN (%versionFile%) Do (
@ -75,7 +99,7 @@ if exist %rootDist% (
)
:zip
if exist %rootPublished%\SATLIC.COM.adminUI.tar.gz del /s /q %rootPublished%\SATLIC.COM.adminUI.tar.gz
if exist %rootPublished%\SATLIC.COM.%appCode%.tar.gz del /s /q %rootPublished%\SATLIC.COM.%appCode%.tar.gz
if %pZip%==1 (
goto zip2
) else (
@ -85,9 +109,9 @@ if %pZip%==1 (
if exist %zipFile% (
echo ==========打包安装包
cd /d %zipFile%
7za a -ttar %rootPublished%\SATLIC.COM.adminUI.tar %rootPublished%\*
7za a -tgzip %rootPublished%\SATLIC.COM.adminUI.tar.gz %rootPublished%\SATLIC.COM.adminUI.tar
del /q %rootPublished%\SATLIC.COM.adminUI.tar
7za a -ttar %rootPublished%\SATLIC.COM.%appCode%.tar %rootPublished%\*
7za a -tgzip %rootPublished%\SATLIC.COM.%appCode%.tar.gz %rootPublished%\SATLIC.COM.%appCode%.tar
del /q %rootPublished%\SATLIC.COM.%appCode%.tar
rd /s /q %rootPublished%\prod
rd /s /q %rootPublished%\test
echo 打包完成
@ -97,8 +121,8 @@ if exist %zipFile% (
:webChat
if %pWebChat%==1 (
if exist %rootPublished%\SATLIC.COM.adminUI.tar.gz (
%rootCodePath%\3.tools\panda\x.satlicNotice.exe 请发布:%appName% %rootPublished%\SATLIC.COM.adminUI.tar.gz
if exist %rootPublished%\SATLIC.COM.%appCode%.tar.gz (
%rootCodePath%\3.tools\panda\x.satlicNotice.exe 请发布:%appName% %rootPublished%\SATLIC.COM.%appCode%.tar.gz
)
)
goto end0

3
500标准.VUE/config.txt Normal file
View File

@ -0,0 +1,3 @@
applicationName:xxxxxx
applicationCode:UI_ADMIN
published:D:\SATLIC.COM.CLOUD