自动打包批处理

@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


   
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值