打包脚本集中管理
This commit is contained in:
22
shell/move.sh
Normal file
22
shell/move.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
Type=$1
|
||||
Prj=$2
|
||||
Deploy=$3
|
||||
|
||||
case "$Type" in
|
||||
web)
|
||||
cp -r $Prj/dist/* $Deploy
|
||||
;;
|
||||
web)
|
||||
cp -r $Prj/dist/build/h5/* $Deploy
|
||||
;;
|
||||
web)
|
||||
cp -r $Prj/dist/build/mp-weixin/* $Deploy
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: $0 (web|wxwork|mp)"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
exit $RETVAL
|
||||
Reference in New Issue
Block a user