构建系统
This commit is contained in:
parent
e6c2d30cba
commit
294bca5a00
@ -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
3
500标准.VUE/config.txt
Normal file
@ -0,0 +1,3 @@
|
||||
applicationName:xxxxxx
|
||||
applicationCode:UI_ADMIN
|
||||
published:D:\SATLIC.COM.CLOUD
|
Loading…
x
Reference in New Issue
Block a user