自动打包批处理

来源:互联网 发布:c语言数组存储方式 编辑:程序博客网 时间:2024/05/22 00:20
@echo off 
set utf8=65001
chcp %utf8%
::输出文档设置为UTF-8编码
set dir=%CD%
::将当前路径设为dir
call svn checkout http://10.78.13.228/svn/webas2/srcset/card-upgrade
::将card-upgrade从SVN上检出
call attrib  *.*  -r  /s
::去除card-upgrade文件只读属性
cd %dir%/card-upgrade/webapp
%dir%/WinRAR/WinRAR.exe x -r -s -y node_modules.rar
::对node_modules.rar进行解压
call gulp build
::对前端进行编译
cd ..
call mvn clean package -Dmaven.test.skip=true
::进行打包操作
call xcopy bin\start.bat output\card-upgrade
cd .\output\card-upgrade
md Java
cd ..\..\..\
call xcopy %dir%\Java\*.* card-upgrade\output\card-upgrade\Java /s/y
cd %dir%
md outPut
call xcopy %dir%\card-upgrade\output\*.* %dir%\outPut /s/y
cd %dir%\outPut\card-upgrade
echo 本版本对应XXX>readme.txt
echo FINISH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
pause


   
原创粉丝点击