直接提交:修改打包文件

develop/lyx_20241121_cfhz
Xiao Ye 2 months ago
parent 8909378bde
commit 355d155be6
  1. 0
      WEB-INF/conf/wat-config_template.txt
  2. 29
      pack_release.bat

@ -1,35 +1,36 @@
@echo off
::设置参数
::目录名称
::<EFBFBD><EFBFBD><EFBFBD>ò<EFBFBD><EFBFBD><EFBFBD>
::Ŀ¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
set vZipFileName=release_%date:~0,4%_%date:~5,2%%date:~8,2%_%time:~0,2%%time:~3,2%
::7-ZipĿ¼
set v7ZipDir="C:\Program Files\7-Zip\"
::创建目录
::<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ¼
::md .\WEB-INF\conf
echo 完成 创建目录
echo <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ¼
::复制文件
::<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
::xcopy %vProjectDir%\WEB-INF\classes\com .\WEB-INF\classes\com /e
echo 完成 复制文件
echo <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
::删除可能的多余文件
del .\WEB-INF\conf\wat-conf.xml
echo 完成 删除可能的多余文件
:<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܵĶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
del .\WEB-INF\conf\wat-config.xml
del .\WEB-INF\conf\wat-config_template.txt
echo <EFBFBD><EFBFBD><EFBFBD> ɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܵĶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
::创建压缩文件列表
::<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѹ<EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><EFBFBD>б<EFBFBD>
::echo WEB-INF\> 7ziplist.txt
::echo %vDirName%.txt>> 7ziplist.txt
::压缩
::ѹ<EFBFBD><EFBFBD>
%v7ZipDir%\7z.exe a -tzip %vZipFileName%.zip @pack_release_list.txt -mx=9 -sdel
::删除列表文件
::ɾ<EFBFBD><EFBFBD><EFBFBD>б<EFBFBD><EFBFBD>ļ<EFBFBD>
del pack_release_list.txt
::删除打包脚本
::ɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ű<EFBFBD>
del pack_release.bat
::退回上级
::<EFBFBD>˻<EFBFBD><EFBFBD>ϼ<EFBFBD>
cd..
@echo on
Loading…
Cancel
Save