Project_PlatForm/000_通用版本/001_框架权限/部署发布系统 - 平台.bat
2025-03-28 09:49:56 +08:00

34 lines
1.3 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
cd /d "%~dp0"
echo -------------------------------------------------
set FloderName=FrameWork.Platform
set TargetPath_AppWebSite=..\920_RealEstate.Publish\RealEstate.AppWebSite
set TargetPath_AppService=..\920_RealEstate.Publish\RealEstate.AppService
if /i "%FloderName%" == "请设置目录名(如:HousingSecurity)" goto Command_Set
goto Command_DoCopy
:Command_Set
echo 请设置参数 FloderName
pause
goto Command_End
:Command_DoCopy
echo 复制:%FloderName%.Service\程序集文件
xcopy /r /h /q /y %CD%\%FloderName%.Service\bin\*.dll %TargetPath_AppService%\bin\>nul
echo 复制:%FloderName%.Service\发布文件
xcopy /e /r /h /q /y /EXCLUDE:部署过滤条件.txt %CD%\%FloderName%.Service %TargetPath_AppService%\%FloderName%\>nul
echo 复制FrameWork.Permission.WebSite\程序集文件
xcopy /r /h /q /y %CD%\FrameWork.Permission.WebSite\bin\*.dll %TargetPath_AppWebSite%\bin\>nul
echo 复制FrameWork.Permission.WebSite\发布文件
xcopy /e /r /h /q /y /EXCLUDE:部署过滤条件.txt %CD%\FrameWork.Permission.WebSite %TargetPath_AppWebSite%\FrameWork.Permission\>nul
echo -------------------------------------------------
echo 完成
set CommandType=%1%
if /i not "%CommandType%" == "" goto Command_End
echo -------------------------------------------------
pause
for /L %%a in (3,-1,1) do (echo %%a 秒钟后关闭...
ping 127.1 -n 2 >nul
)
@echo on
:Command_End