autoRelease.sh 396 B

12345678910111213141516
  1. #!/bin/bash
  2. # 文件原路径
  3. srcPath="./dist"
  4. # 发布路径文件夹
  5. releasePath="../server/public/pc"
  6. #删除发布目录下的PC文件
  7. rm -r $releasePath
  8. echo "已删除 ==> $releasePath 下的目录文件"
  9. mkdir $releasePath
  10. echo "已新建 ==> $releasePath 目录"
  11. # 复制打包目录内的文件到发布目录
  12. cp -r $srcPath/* $releasePath
  13. echo "已复制 $srcPath/* ==> $releasePath"