更新脚本

This commit is contained in:
潘佳 2024-01-04 16:50:25 +08:00
parent 294bca5a00
commit ea046e83db

View File

@ -23,14 +23,12 @@ if '%pWebChat%'=='' (
set pWebChat=1
)
set rootPublished=D:\SATLIC.COM.CLOUD.UI_ADMIN
set appName=云端后台管理界面
cd ..
set zipFile=%cd%\7Zip
cd ..
set rootCodePath=%cd%
set rootCodePath=%cd%\5.code
set rootDist=%rootCodePath%\dist
set versionBat=%cd%\8.version\每次编译.bat
set versionFile=%cd%\8.version\versiontemp.txt
@ -41,7 +39,6 @@ for /f "tokens=*" %%a in (%file99%) do (
set var=%%a
if "!var:~0,16!"=="applicationName:" (
echo ==
set appName=!var:~16,-1!!var:~-1,1!
)
@ -56,6 +53,10 @@ for /f "tokens=*" %%a in (%file99%) do (
set rootPublished=!rootPublished!.!appCode!
set appName=!appName!
set appCode=!appCode!
echo 准备发布:%appName%
echo ====地址:%rootPublished%
echo ====编号:%appCode%
ping 127.0.0.1 -n 3 >nul
echo 准备版本号
start %versionBat%>nul
@ -76,6 +77,7 @@ ping 127.0.0.1 -n 3 >nul
echo 发布测试服务
if exist %rootDist% rd /q /s %rootDist%
if exist %rootPublished% rd /q /s %rootPublished%
cd /d %rootCodePath%
call npm run build:dev
set publish=%rootPublished%\test
@ -88,6 +90,7 @@ if exist %rootDist% (
echo 发布正式服务
if exist %rootDist% rd /q /s %rootDist%
cd /d %rootCodePath%
call npm run build:prod
set publish=%rootPublished%\prod