ios_build_pre.sh 779 Bytes
# 编译发布前需要执行的操作

if [ -z "$1" ]; then
  echo '需要指定环境变量'
fi

base_root='/Users/ethanlam/works/gitlab/flutter_pros/appframe.git/assets'
cd $base_root

if [ ! -z "$1" ]; then
# 首先下载同步最新的数据包
    rm -f assets/dist.zip
    cd assets
    if [ "$1" == 'dev' ]; then
        wget https://bxe.obs.cn-north-4.myhuaweicloud.com/fronts/material/xehybrid/assets/basepkg/base-dev.zip
        cp -f base-dev.zip $base_root/assets/dist.zip
        echo 'wget dev is done '
    fi
    if [ "$1" == 'pro' ]; then
        wget https://bxe.obs.cn-north-4.myhuaweicloud.com/fronts/material/xehybrid/assets/basepkg/base-pro.zip
        cp -f base-pro.zip $base_root/assets/dist.zip
        echo 'wget pro is done '
    fi
fi

echo 'done '