From 3f345740c616fe2035292392db9c2a7043dd23aa Mon Sep 17 00:00:00 2001 From: lizw <1183409807@qq.com> Date: Fri, 21 Jul 2023 13:18:39 +0800 Subject: [PATCH] 09wms-ztf-pad-test.sh --- hua_wei_yun/09wms-ztf-pad-test.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hua_wei_yun/09wms-ztf-pad-test.sh b/hua_wei_yun/09wms-ztf-pad-test.sh index 4bc65a7..cfcf247 100644 --- a/hua_wei_yun/09wms-ztf-pad-test.sh +++ b/hua_wei_yun/09wms-ztf-pad-test.sh @@ -33,8 +33,23 @@ deploy() { echo "###--编译完成-----------------------------------------------------------------------------###" echo "" + # 创建打包文件夹 + echo -e "$echoPrefix rm -rf $codePath/tmp $echoSuffix" + rm -rf $codePath/tmp + echo -e "$echoPrefix mkdir -p $codePath/tmp/web/wms_mobile $echoSuffix" + mkdir -p $codePath/tmp/web/wms_mobile + echo -e "$echoPrefix cp -r ./dist/ ./tmp/web/wms_mobile/ $echoSuffix" + cp -r ./dist/ ./tmp/web/wms_mobile/ + + echo -e "$echoPrefix cd $codePath/tmp $echoSuffix" + cd $codePath/tmp + echo -e "$echoPrefix zip -r web.zip web $echoSuffix" + zip -r web.zip web + + echo "###--打包完成-----------------------------------------------------------------------------###" + echo "" } cmd=$1